0
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/ 

I am getting this kind of error when i am using mozilla works fine in chrome and also i am getting memory leaked error in node console

ujwal dhakal
  • 2,289
  • 2
  • 30
  • 50

1 Answers1

1

Assuming you have access to the server source, you can try to use:

io.set('origins', 'http://nameofyourdomain.com:80');

Obviously, you need to replace the domain/port with those which are applicable to your setup.

This Stack Overflow answer https://stackoverflow.com/a/21711242/5070356 has a pretty good breakdown of configuring origins

Community
  • 1
  • 1
snozza
  • 2,123
  • 14
  • 17