Skip to content

Commit 6b68d34

Browse files
authored
Add localhost:4200 to allowedOrigins
1 parent 41e87e8 commit 6b68d34

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ app.use(bodyParser.urlencoded({ extended: true }));
1616

1717
// Set up CORS
1818
const cors = require('cors');
19-
let allowedOrigins = ['http://localhost:8080', 'http://testsite.com', 'http://localhost:1234', 'https://myflickpick.netlify.app'];
19+
let allowedOrigins = [
20+
'http://localhost:8080',
21+
'http://localhost:4200',
22+
'https://flickpick-1911bf3985c5.herokuapp.com',
23+
'http://localhost:1234',
24+
'https://myflickpick.netlify.app'
25+
];
26+
2027
app.use(cors({
2128
origin: (origin, callback) => {
2229
if (!origin) return callback(null, true);

0 commit comments

Comments
 (0)