Skip to content

Commit

Permalink
Fix for No 'Access-Control-Allow-Origin' header is present error. (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinyilmaz authored and owais committed Sep 25, 2017
1 parent 14af9a2 commit 323839c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/hot-reload/server.js
Expand Up @@ -6,7 +6,8 @@ new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
inline: true,
historyApiFallback: true
historyApiFallback: true,
headers: { 'Access-Control-Allow-Origin': '*' }
}).listen(3000, '0.0.0.0', function (err, result) {
if (err) {
console.log(err);
Expand Down

0 comments on commit 323839c

Please sign in to comment.