• I activated the plugin and set ‘access-control-allow-origin’ to * (this is for a read-only consumable API, in fact I actually only need to make my XML feed respond with this header).

    However, when I examine the network request, no ‘access-control-allow-origin’ is sent. Also if I used the built-in tool to “Inspect headers” and enter my own website (https://blog.momeas.com/), it tells me that no ‘access-control-allow-origin’ is set.

    I am running on Plesk, which is a Windows-based all-in-one hosting platform. PHP version is 7.4.3.

    I have tried BOTH the settings in the “Advanced” tab for “Use PHP to send headers” and “Use Apache”. I think my server is running Windows IIS (I’m not 100% sure) and I think it uses FastCGI.

    is there some caching that might need to be flushed to get the headers to modify ?

    Any other debugging steps I should try? I have a ticket with my Web hosting company open for this issue but they are unsure what we can do to try to debug this.

    Thanks
    Jason

    • This topic was modified 6 years, 2 months ago by jasonfb.
    • This topic was modified 6 years, 2 months ago by jasonfb.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • danvy

    (@danvy)

    Hello,
    I have the exact same problem.
    Setting the Access-Control-Allow-Origin header has no effect.

    Alex

    danvy

    (@danvy)

    I found those lines in .htaccess

    Header set Access-Control-Allow-Origin %{CORS}e env=CORS
    Header append Vary “Origin” env=CORS

    Plugin Author Dimitar Ivanov

    (@zinoui)

    For same-site requests it hasn’t any effect, only increase the overall size of headers, which is a performance gap.

    That’s why the Access-Control-Allow-Origin header is send only for cross-origin requests.

    Are you sure you test with crosss-origin requests?

    Plugin Author Dimitar Ivanov

    (@zinoui)

    Hi @danvy and @jasonfb

    Finally I’ve found a bug in the Access-Control-Allow-Origin header and I just released a new version.

    I’m sorry for the inconvenience and I hope this helps for resolving the issue.

    Thread Starter jasonfb

    (@jasonfb)

    I will look again

    Thread Starter jasonfb

    (@jasonfb)

    I am still unable to get this to work. I upgraded the plugin to Version 1.15.1 but I am still unable to see the Access-Control-Allow-Origin to show up on my /feed URL

    Plugin Author Dimitar Ivanov

    (@zinoui)

    You need to go to the plugin and save the certain setting again. This way the .htaccess file will be updated.

    Thread Starter jasonfb

    (@jasonfb)

    hmmm… you mean just go back and click “Save” ? Let me try another time

    danvy

    (@danvy)

    Hello,
    I’m using v1.15.1 and this header is still added after a save on the dedicated settings page.

    Alex

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Plugin activated but no “access-control-allow-origin” set’ is closed to new replies.