Access-Control-Allow-Origin (ACAO) code example

Example 1: access-control-allow-origin htaccess

<IfModule mod_headers.c>    
    Header set Access-Control-Allow-Origin *
</IfModule>

Example 2: access-control-allow-origin

Access-Control-Allow-Origin: *

Example 3: header access-control particular domain

Access-Control-Allow-Origin: http://siteA.com

Example 4: loi Access-Control-Allow-Origin

open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

Tags:

Misc Example