heroku-examples / node-socket.io

77 stars 133 forks source link

Ionic 2 No 'Access-Control-Allow-Origin' header is present #4

Open rabernet opened 7 years ago

rabernet commented 7 years ago

Why i test my app in heroku node.js socket.io basic conection.

But in angular 1, angular 2, Ionic 2.

Appear: XMLHttpRequest cannot load https://xxxxxx.herokuapp.com//socket.io/?EIO=3&transport=polling&t=LinPHk2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:XXXX' is therefore not allowed access. No 'Access-Control-Allow-Origin' header is present

Thanks.