-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
To use origin/referrer checking instead of an anti-CSRF token, disable CSRF token checking and set the list of origins that are allowed to connect to your WebSocket endpoint: (sente/make-channel-socket-server! (get-sch-adapter) {:csrf-token-fn nil :allowed-origins #{"http://site1.com" "http://site2.com"}) The current implementation checks both the Origin and the Referer header as per the OWASP CSRF Prevention Cheat Sheet.
- Loading branch information
1 parent
65f1217
commit 9a6e58d
Showing
1 changed file
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters