Last active
June 14, 2017 03:04
-
-
Save antoniojps/774d0bf3a03186108f215399e9d78f62 to your computer and use it in GitHub Desktop.
CORS: Cross-domain requests -
CSRF - Cross Site Request Forgery PROTECTION
This file contains hidden or 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
Debugging: chrome://net-internals/#events | |
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS | |
Access-Control-Allow-Credentials: 'Content-type, Authorization' | |
Access-Control-Allow-Origin: $ORIGIN | |
$ORIGIN = if(inWhitelist(requestOriginHeader) return requestOriginHeader | |
// Se esta na whitelist entao meter esse domain la | |
// Incluir ports no Allow Origin Header!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment