Hi Vu,
Just to add to your answer.
I can see the error on latest Chrome, Firefox, Edge. In my experience this error is due to the withCredentials property set to true on the XMLHttpRequest Object: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials.
The error message seems to indicate that this property is set
within the IMA JavaScript SDK.
I am a bit confused because in a post here:
https://developers.google.com/interactive-media-ads/docs/sdks/html5/community?place=msg%2Fima-sdk%2FYOzE8dH6JCY%2F0D8VIJMXBQAJ
it states that both solutions should work. However modern browsers
do block inaccurate CORS requests. So given the fact that the ad
plays I am wondering if this error is not due to non-critical
sub-processes of the SDK (like logging or such).
I just want to know what we should be telling 3rd party ad server. Must they set Access-Control-Allow-Credentials: true with proper Access-Control-Allow-Origin on the server to work with HTML5 SDK or can they also use Access-Control-Allow-Origin: * while Access-Control-Allow-Credentials: false is set.
Thanks
Arnaud
--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/nPAvee0NSrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
Hi Vu,
Thanks for your answers.
I understand now that the wildcard option is not possible with the SDK as it will negate the use for CORS.
I already have another server config to properly set
access-control-allow-origin which does not cause the error
message.
Arnaud