We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09576d9 commit 8a49b52Copy full SHA for 8a49b52
src/index.js
@@ -15,7 +15,9 @@ const port = process.env.PORT || 8080;
15
app.use(express.static('public'));
16
app.use(express.urlencoded({ extended: true }));
17
app.use(express.json());
18
-app.use(require('cors')({ origin: '*' }));
+app.use(require("cors")({
19
+ origin: ['https://fairfieldprogramming.org', 'http://localhost:8000/']
20
+}));
21
22
// Programs
23
app.get('/', require('./routes/index'));
0 commit comments