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

Cross-Origin Request Blocked


Some ad tags are returning cross-origin errors.


Console log:
http://i57.tinypic.com/345hnut.jpg

Page with video player:
http://tinyurl.com/n88lpzv

10 Community Answers

Andrew

JW Player Support Agent  
0 rated :

It’s possible that the crossdomain policy is not correctly configured on a particular domain. Is this happening on both Flash and HTML5?

derek1derek

User  
0 rated :

Errors return for both HTML5 and Flash.

In HTML5 in Chrome I see errors such as:

XMLHttpRequest cannot load http://video1.fastclick.net/w/get.video?vpsid=66809&vpaid=1. Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials.
2797834:1 XMLHttpRequest cannot load http://ads.intergi.com/adrawdata/3.0/5205/2454467/0/1013/ADTECH;referring_u…meanyone.com%2Fvideo%2F797834;number=752106578787788800;time=1420235012148. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.gameanyone.com' is therefore not allowed access.

Andrew

JW Player Support Agent  
0 rated :

I believe this is related to HTML5 CORS issues. This is something that would need to be addressed on the server that is hosting assets which you are accessing.

derek1derek

User  
0 rated :

It doesn't work in Flash either though.

The servers all have crossdomain.xml files with wildcards:
http://video1.fastclick.net/crossdomain.xml
http://ads.intergi.com/crossdomain.xml
http://www.gameanyone.com/crossdomain.xml
http://cdn.gameanyone.com/crossdomain.xml

I'm assuming the top video agencies also have cross domain settings properly configured.

Where is the issue? Who is at fault?

Andrew

JW Player Support Agent  
0 rated :

Crossdomain.xml files would only apply to Flash crossdomain access. As it stands, these ads are functioning correctly for me on my end. Again, HTML5 is associated with CORS headers:
http://support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading#html5

derek1derek

User  
0 rated :

I am aware of that. I am using Flash and I get crossdomain errors.

If I switch to HTML5, I also get crossdomain errors.

I have tested this on 2 computers on different Internet connections, both of which are returning the same errors.

I have reached out to the agencies and they are "looking into it" - yet the common denominator is the JW Player.

I would appreciate if someone from here could work with me to sort out these issues.

Andrew

JW Player Support Agent  
0 rated :

Occasionally, some elements for VPAID tags may utilize HTML and javascript to a degree. I can say that I have seen errors occasionally, but they do not affect performance of ad delivery. Again, I have been able to see ads delivered in the above link regardless of these console errors.

derek1derek

User  
0 rated :

The ads you are seeing are not from those tags, but others that are in the waterfall.

The tags which I am having issues with are from popular agencies who have the proper CORS settings, yet the ads do not load.

They do not load. There are 0 impressions.

Andrew

JW Player Support Agent  
0 rated :

I’ve been testing these tags out individually, and despite there being HTML5 CORS errors, I’m still not getting a valid vast response that the player can utilize. This is returning both blank and invalid responses. I’m not sure if this may be linked to a particular account number with your account on these ad networks, but I also received a few errors about domains not matching within console. If these are tested on something like Google’s ad inspector:
https://developers.google.com/interactive-media-ads/docs/vastinspector_dual

Are you receiving similar errors? Likewise, are ads able to play here?

derek1derek

User  
0 rated :

None of the tags play ads on the Google player. Most return saying there are no ads, but a couple return other messages/errors.

The pubads.g.doubleclick.net tag, It says it worked, but no ads were actually displayed:
(4:59:19 PM) Ads requested
(4:59:19 PM) adsManagerLoaded
(4:59:19 PM) adMetadata
(4:59:19 PM) loaded
(4:59:20 PM) completed
(4:59:20 PM) allAdsCompleted

The x.vindicosuite.com tag returns a new error:
(5:00:57 PM) Ads requested
(5:00:57 PM) adError Ad error (code 0): Custom content loaded, but there's no event handler for it.
(5:00:57 PM) Error: Custom content loaded, but there's no event handler for it.

Some of the other tags return no ads, this could be due to no available ads, but it is also returning the CORS errors which could be preventing the loading of ads.

This question has received the maximum number of answers.