Jump to content

Recommended Posts

Posted

I am trying to serve a linear video ad across domains. The preroll will not play and I am receiving the following error

A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://example.com' is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute.

I made changes to the to / www / delivery / spc.php file commenting header('Access-Control-Allow-Origin: *'); and adding 

MAX_header('Access-Control-Allow-Origin: https://example.com');
MAX_header('Access-Control-Allow-Credentials: true');

I am still receiving the same error. If someone can point in the direction to resolving this issue it would be greatly appreciated.

  • 4 months later...
Posted

Based on the date of the post, I suspect this was a bug, which has been resolved in more recent releases. Alternatively, it may have been related to some missing documentation, which has also now been created. Hopefully, this is no longer an issue for users!

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...