Apache Server - htaccess

htaccess

--- Comments

# precede noncode with the hash tag to denote a comment



--- cross-origin resource sharing (CORS) settings

---- key search terms: Header set Access-Control-Allow-Origin

Allow specified domain for restricted data access:

# cross-origin resource sharing (CORS) settings
Header set Access-Control-Allow-Origin http://myspecifieddomain.biz
[/highlightjs_code]

Allow all domains for publicly available data:

# cross-origin resource sharing (CORS) settings
Header set Access-Control-Allow-Origin *



Reference:
---- http://httpd.apache.org/docs/current/mod/mod_headers.html
---- www.w3.org/wiki/CORS_Enabled
---- http://www.w3.org/TR/2008/WD-access-control-20080912/#access-control-all...
---- http://enable-cors.org/server_apache.html
---- https://securityheaders.com/access-control-allow-origin.php
---- http://www.html5rocks.com/en/tutorials/cors/#toc-adding-cors-support-to-...
---- http://www.adobe.com/devnet/html5/articles/understanding-cross-origin-re...

Language: