Home » Categories » Apache » .htaccess Configuration

The ’Access-Control-Allow-Origin’ header with Giant Apache!

 

SetEnvIf Origin ^(https?://(?:.+\.)?aonesalons\.com(?::\d{1,5})?)$   CORS_ALLOW_ORIGIN=$1
Header append Access-Control-Allow-Origin  %{CORS_ALLOW_ORIGIN}e   env=CORS_ALLOW_ORIGIN

The 'Access-Control-Allow-Origin' header contains multiple values '*, https://demo.aonesalons.com', but only one is allowed


Ref:
https://stackoverflow.com/questions/48766156/the-access-control-allow-origin-header-with-apache/49026668

 

 

 

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 access to all .php files
Viewed 599 times since Wed, Dec 22, 2021
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 contains multiple values
Viewed 772 times since Mon, Oct 19, 2020
.htaccess - how to force “www.” in a generic way?
Viewed 1237 times since Sat, Feb 20, 2021