Answer the question
In order to leave comments, you need to log in
Why doesn't CrossDomain work in Chrome?
Good afternoon!
Tell me why crossdomain does not work in chrome (it works in other browsers)?
Request for an image like domain1.com/img.jpg from the http://domain2.com domain, the request contains Origin: domain1.com and the response contains Access-Control-Allow-Origin:*, but in the end chrome says:
Image from origin ' domain1.com ' has been blocked from loading by Cross-Origin Resource Sharing policy: Received an invalid response. Origin ' domain2.com ' is therefore not allowed access.
File
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*" />
</cross-domain-policy>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question