Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

CORS issue when using hosted video as a pre-roll

First I've uploaded a video to my account.
Then I get its url (like and created a vast3.0 tag. Its relative part is:
Then I tried to use it as a pre-roll in jw setup.
But when I checked the console log there was an error: "XMLHttpRequest cannot load A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin '' is therefore not allowed access." So the video was not played obviously.
Is there any workaround to play a hosted video as a pre-roll?

3 Community Answers


JW Player Support Agent  
1 rated :

Hi, there.

The <VASTAdTagURI> element in an ad tag is for redirecting to another ad tag. When you want to specify the actual creative that your ad tag wants to play, you should use the <MediaFile> element instead. We have a great example of a proper VAST ad tag XML file on this support article:

Please let me know if you need any more help or have any other questions.

Thank you!


1 rated :

It worked, thank you very much


JW Player Support Agent  
1 rated :

Not a problem!

This question has received the maximum number of answers.