Home » Categories » Apache » .htaccess Configuration

The ’Access-Control-Allow-Origin’ header contains multiple values

SetEnvIf Origin "^(https?://localhost|https://[a-z]+\.my\.base\.domain)$" ORIGIN_SUB_DOMAIN=$1
Header set Access-Control-Allow-Origin: "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN


Ref:
https://stackoverflow.com/questions/22343384/the-access-control-allow-origin-header-contains-multiple-values
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
Deny direct public access to all files in directory
Viewed 495 times since Wed, Dec 22, 2021
Allow file directory listing using .htaccess
Viewed 606 times since Fri, Nov 26, 2021
The ’Access-Control-Allow-Origin’ header with Giant Apache!
Viewed 765 times since Mon, Oct 19, 2020
Deny direct access to all .php files
Viewed 599 times since Wed, Dec 22, 2021
.htaccess - how to force “www.” in a generic way?
Viewed 1237 times since Sat, Feb 20, 2021