Localhost and Subdomains - sgml/signature GitHub Wiki
Basic CORS for localhost development
-
Add your subdomain to the Origin Request header, e.g. foo.bar.com
-
Add the Access-Control-Allow-Origin Response header with your localhost value, e.g. localhost:9999
-
Add the Access-Control-Allow-Credentials Response header with a value of
true
Example
Request Headers
Host: example.com
Origin: https://localhost:8081
Referer: https://localhost:8081
Response Headers
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: localhost:8081
Vary: Origin,Accept-Encoding,User-Agent
References
- http://blog.nelm.io/2011/11/cors-with-sencha-touch/
- https://code-examples.net/en/q/12d42a4
- https://www.moesif.com/blog/technical/cors/Authoritative-Guide-to-CORS-Cross-Origin-Resource-Sharing-for-REST-APIs/
- https://help.crossbrowsertesting.com/faqs/testing/invalid-host-header-error/
- https://medium.com/@BillFienberg/tunnels-and-proxies-and-headers-oh-my-5088e1ee11fa
- https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html
- https://developer.tizen.org/development/guides/web-application/w3chtml5supplementary-features/security/cross-origin-resource-sharing
- https://w3c.github.io/webappsec-cors-for-developers/
- https://news.ycombinator.com/item?id=12595628
- https://github.com/nodejs/node/issues/14304
- https://www.hostingadvice.com/how-to/nodejs__dirname/
- https://host4asp.net/set-up-node-js-on-a-windows-server/
- https://superuser.com/questions/395167/configuring-linux-to-use-windows-proxy
- http://www.catonmat.net/http-proxy-in-nodejs/
- https://atticuswhite.com/blog/apache-serving-nodejs/
- https://adamtuttle.codes/add-node-to-existing-iis-server/
- https://www.ocf.berkeley.edu/~xuanluo/sshproxywin.html
- http://codebetter.com/matthewpodwysocki/2010/09/08/getting-started-with-node-js-on-windows/
- http://knowledge.santanu.net/install-and-working-with-nodejs-on-windows-pc-and-openshift/
- https://medium.com/@baphemot/understanding-cors-18ad6b478e2b
- https://cdnjs.com/libraries/backbone.js/tutorials/cross-domain-sessions
- https://expressjs.com/en/guide/behind-proxies.html
- https://flaviocopes.com/express-cors/
- https://www.express-gateway.io/
- https://buer.haus/2017/03/08/airbnb-when-bypassing-json-encoding-xss-filter-waf-csp-and-auditor-turns-into-eight-vulnerabilities/