Skip to content

Commit

Permalink
Fix CORS issue with hot reloading (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch authored Aug 1, 2017
1 parent 8e72641 commit 15e74e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hot-reload-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const app = express();

const compiler = webpack(config);

app.use(function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
next();
});

app.use(devMiddleware(compiler, {
publicPath: "/"
}));
Expand Down

0 comments on commit 15e74e5

Please sign in to comment.