iam4x / isomorphic-flux-boilerplate

ES7 Isomorphic Flux/ReactJS Boilerplate
http://isomorphic.iam4x.fr
798 stars 121 forks source link

CORS issue with hot reloading #533

Open averybross opened 6 years ago

averybross commented 6 years ago

How can I add cors to this?

This wasn't happening before, but all of a sudden it is.... any ideas?

Failed to load http://10.1.5.151:3001/assets/75450b0e39ac42b3fc74.hot-update.json: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3002' is therefore not allowed access.

and

handleError @ process-update.js:122
cb @ process-update.js:33
Promise.catch (async)
check @ process-update.js:70
module.exports @ process-update.js:28
processMessage @ client.js:228
handleMessage @ client.js:111
handleMessage @ client.js:74
bootstrap 75450b0e39ac42b3fc74:61 Uncaught (in promise) Error: Manifest request to //10.1.5.151:3001/assets/75450b0e39ac42b3fc74.hot-update.json timed out.
    at XMLHttpRequest.request.onreadystatechange (bootstrap 75450b0e39ac42b3fc74:61)