Original Script
Header set Access-Control-Allow-Origin "https://www.imnobby.com"
Modified Script
Rather than only setting one cross site origin, the script below adds multiple CORS Origin to the HTTP Header.
<IfModule mod_headers.c> SetEnvIf Origin "http(s)?://(www\.)?(imnobby.com|otherdomain.example|dev02.otherdomain.example)$" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin Header merge Vary Origin </IfModule>Related Keywords: Developer, How-to, Solved, Apache Set Multiple Access Control Allow Origin, CentOS, Ubuntu