• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Cors restrictions even though headers are fine

audrew

New Pleskian
I receive cors restrictions even though I set headers in apache and nginx settings and I receive:
```
  • access-control-allow-credentials:
    true
  • access-control-allow-headers:
    X-Requested-With,Content-Type,Authorization
  • access-control-allow-methods:
    GET, POST, PUT, DELETE, OPTIONS
  • access-control-allow-origin:
    *
  • access-control-max-age:
    864000
```
I also tried .htaccess and headers apply as it should but I still receive stricted cors.
I tried to login via terminal and change headers from there, but I can't get access to root user to change file.
What should I do?
 
I am sorry I got you wrong. However, in your post you did not mention that you followed the Plesk guide.

Actually, in the guide it explicitely says: "Warning: Only one header Access-Control-Allow-Origin can be added. CORS will not work if the header is defined both in nginx and Apache, or twice for Apache or nginx respectively."
In your post you wrote: "even though I set headers in apache and nginx settings".

So one could actually get the idea that you did not follow the Plesk guide. That is why I was asking. But again, sorry for trying to help.
 
I am sorry I got you wrong. However, in your post you did not mention that you followed the Plesk guide.

Actually, in the guide it explicitely says: "Warning: Only one header Access-Control-Allow-Origin can be added. CORS will not work if the header is defined both in nginx and Apache, or twice for Apache or nginx respectively."
In your post you wrote: "even though I set headers in apache and nginx settings".

So one could actually get the idea that you did not follow the Plesk guide. That is why I was asking. But again, sorry for trying to help.
I would like to get solution please
 
Back
Top