Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Jan 30, 2026, 04:58 AM

Title: Error in browser console on website that requests content from another website
Post by: Suhitha on Jan 30, 2026, 04:58 AM
Question: Error in browser console on website that requests content from another website hosted on Plesk for Linux server: The 'Access-Control-Allow-Origin' header contains multiple values, but only one is allowed


Applicable to:



Symptoms


Access to XMLHttpRequest at 'https://example.org/api/user/device-login' from origin 'https://example.com/some-url' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://example.org, *, *', but only one is allowed.


Cause

The HTTP header Access-Control-Allow-Origin is duplicated.


Resolution

1.Log in to Plesk.

2.Check the following places for directive that adds the header Access-Control-Allow-Origin:

 
 
   
3.Remove the directives that add the header Access-Control-Allow-Origin from 2 of 3 of above places, leaving only one of them.