Skip to content

Instantly share code, notes, and snippets.

@0xBADCA7
Created December 31, 2015 00:00
Show Gist options
  • Save 0xBADCA7/9829ec7f3364fd0b165e to your computer and use it in GitHub Desktop.
Save 0xBADCA7/9829ec7f3364fd0b165e to your computer and use it in GitHub Desktop.
A stub for HTTP 200 reply with CORS headers. Useful for piping into netcat when XSS'ing. One reply is for the OPTIONS request.
HTTP/1.1 200 OK
Server: MSLC
Date: Sun, 28 Dec 2015 08:50:04 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Status: 200 OK
Cache-Control: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: GET, POST, PUT
HTTP/1.1 200 OK
Server: MSLC
Date: Sun, 28 Dec 2015 08:50:04 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Status: 200 OK
Cache-Control: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: GET, POST, PUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment