使用 socket.io 的 mozilla firefox 出错
Error in mozilla firefox using socket.io
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://jsgnr.eshopcomp.com/bwl/wl. (Reason: CORS request failed). <unknown>
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
当我在 chrome 中使用 mozilla 时出现这种错误并且我在节点控制台中出现内存泄漏错误
假设您可以访问服务器源,您可以尝试使用:
io.set('origins', 'http://nameofyourdomain.com:80');
显然,您需要将 domain/port 替换为适用于您的设置的那些。
这个 Stack Overflow 答案 对配置 origins
进行了很好的分解
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://jsgnr.eshopcomp.com/bwl/wl. (Reason: CORS request failed). <unknown>
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
当我在 chrome 中使用 mozilla 时出现这种错误并且我在节点控制台中出现内存泄漏错误
假设您可以访问服务器源,您可以尝试使用:
io.set('origins', 'http://nameofyourdomain.com:80');
显然,您需要将 domain/port 替换为适用于您的设置的那些。
这个 Stack Overflow 答案 对配置 origins