
Ad CORS issue if using .load method
We are using pre-roll ads for publishing videos with JWPlayer. These work fine if used via HTML5 or Flash for a single video - the page header is set up fine with "Access-Control-Allow-Origin" and the external AdServer's VAST tags are CORS compliant. So, no CORS issue at all.
But trying to start a different video (from playlist) via API's .load() method for the main video object, results in an CORS error message, and the Ad will not load. The Video itself plays fine.
We use the recommended js-method for this
<script>
function loadVideo(myFile,myImage) {
playerInstance.load([{
file: myFile,
image: myImage
}]);
playerInstance.play();
};
</script>
How do we solve this issue?
Regards
Ralph