OPTIONS http://191...218/login 405 (Method Not Allowed)(地址为服务器IP)
XMLHttpRequest cannot load http://191...218/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://bbs...club' is therefore not allowed access. The response had HTTP status code 405.(*.club是绑定的域名)
出现此类错误是否与 使用ip地址访问进行安装 有关,该如何解决呢
登陆时405错误
在nginx配置中增加了
add_header Access-Control-Allow-Origin *;
解决了通过域名访问时的“字体不正常(变成口口口)”的问题,然而登陆也有问题