无法从HTTPS加载HTTP - 相同的域

时间:2016-09-08 19:15:59

标签: .htaccess http-headers apache2

我在控制台中收到此错误:

SUCCESS

我该如何解决这个问题?

我已将此添加到我的.htaccess:

启用mod_header +重启apache。

XMLHttpRequest cannot load https://example.com/shop/xx/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com' is therefore not allowed access.

0 个答案:

没有答案