lnmp 环境,用了 cloudflare 的 ssl ,全站各个网页已经正常显示绿色的小锁状态,但是一个奇葩的事情出现了: 现在在输入服务器公网 ip 的状态下,用户在登录界面可以正常登录,但是在 https://mydomain.com 的登录界面,用户无法登录:出现弹窗: network does not work 。 console 里面的错误(不知道如何贴图,就只能贴 error 了)如下:
XMLHttpRequest cannot load https://www.mydomain.com/?/account/ajax/login_process/. No 'Access-Control-Allow-Origin' header is present on the https://www.mydomain.com/?/account/login/:1 requested resource. Origin 'https://www.mydomain.com' is therefore not allowed access.
Object {readyState: 0, responseJSON: undefined, status: 0, statusText: "error"}
请问各位应该如何做?为什么会出现这种情况?