Skip to content

Commit 8a49b52

Browse files
committed
restored the CORS config
1 parent 09576d9 commit 8a49b52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const port = process.env.PORT || 8080;
1515
app.use(express.static('public'));
1616
app.use(express.urlencoded({ extended: true }));
1717
app.use(express.json());
18-
app.use(require('cors')({ origin: '*' }));
18+
app.use(require("cors")({
19+
origin: ['https://fairfieldprogramming.org', 'http://localhost:8000/']
20+
}));
1921

2022
// Programs
2123
app.get('/', require('./routes/index'));

0 commit comments

Comments
 (0)