Jump to content

Banners not delivering - Access-Control-Allow-Origin problem


triballi

Recommended Posts

Hi,

everything worked perfect till several days ago. Then all banners stopped delivering. I updated Revive but without results.

Then I checked in debugger and saw this error:

Wildcards cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://deliverysite.rs' is therefore not allowed access.

How can I solve this problem?

thanks,

Milan

Link to comment
Share on other sites

OK. I think I found solution.

In www/delivery/asyncspc.php

I replaced line 2454

MAX_header('Access-Control-Allow-Origin: * ');

with

MAX_header('Access-Control-Allow-Origin: http://deliverysite.rs');
MAX_header('Access-Control-Allow-Credentials: true');

I cleared var/cache

And it works now :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...