Skip to content

Commit 323839c

Browse files
huseyinyilmazowais
authored andcommitted
Fix for No 'Access-Control-Allow-Origin' header is present error. (#130)
1 parent 14af9a2 commit 323839c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hot-reload/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ new WebpackDevServer(webpack(config), {
66
publicPath: config.output.publicPath,
77
hot: true,
88
inline: true,
9-
historyApiFallback: true
9+
historyApiFallback: true,
10+
headers: { 'Access-Control-Allow-Origin': '*' }
1011
}).listen(3000, '0.0.0.0', function (err, result) {
1112
if (err) {
1213
console.log(err);

0 commit comments

Comments
 (0)