Jump to content

Help Resolving a CORS issue


soehlblaze

Recommended Posts

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.

Link to comment
Share on other sites

  • 4 months later...

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