View definition

(Upgrader).CheckOrigin

Defined in github.com/gorilla/websocket/server.go

Description

CheckOrigin returns true if the request Origin header is acceptable. If CheckOrigin is nil, the host in the Origin header must not be set or must match the host of the request.

CheckOrigin is referenced in 127 repositories

github.com/gorilla/websocket github.com/rshmelev/easyws github.com/rubenv/broadcaster

...