Created
August 20, 2013 21:29
-
-
Save funnylookinhat/6287574 to your computer and use it in GitHub Desktop.
From http://stackoverflow.com/questions/298745/how-do-i-send-a-cross-domain-post-request-via-javascript
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
header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']); | |
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); | |
header('Access-Control-Max-Age: 1000'); | |
header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So insecure it's not even funny.
Browser session hijacks seem like the easiest attack route.