Skip to content

Commit d6ad31e

Browse files
node server port
1 parent 0981a52 commit d6ad31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
app.use(function (req, res, next) {
1313

1414
// Website you wish to allow to connect
15-
res.setHeader('Access-Control-Allow-Origin', 'http://localhost');
15+
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:8080');
1616

1717
// Request methods you wish to allow
1818
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');

0 commit comments

Comments
 (0)