XMLHttpRequest cannot load https://example1.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example2.com' is therefore not allowed access.
How to resolve this on apache.
XMLHttpRequest cannot load https://example1.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example2.com' is therefore not allowed access.
How to resolve this on apache.
Header set Access-Control-Allow-Origin "*"
- to open cors for all domains Header set Access-Control-Allow-Origin "http://example2.com"
- to open cors for your domain
More info you can find at http://enable-cors.org/server_apache.html.