Skip to content

Commit

Permalink
Update configureMiddlewares.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed Oct 30, 2024
1 parent f0c65b5 commit 60001d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/configureMiddlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const configureMiddlewares = (app) => {
app.use(express.json());
app.use(cors({
origin: function (origin, callback) {
const allowedOrigins = ['http://localhost:3001', 'https://www.intelliq.arc-solutions.xyz', 'https://www.intelliq.dev', 'https://www.beta.intelliq.dev', 'https://www.internal.intelliq.dev', 'https://intelliq-be-s1.azurewebsites.net', 'https://intelliq-be-s2.azurewebsites.net', 'https://intelliq-be-s3.azurewebsites.net'];
const allowedOrigins = ['http://localhost:3000','http://localhost:3001', 'https://www.intelliq.arc-solutions.xyz', 'https://www.intelliq.dev', 'https://www.beta.intelliq.dev', 'https://www.internal.intelliq.dev', 'https://intelliq-be-s1.azurewebsites.net', 'https://intelliq-be-s2.azurewebsites.net', 'https://intelliq-be-s3.azurewebsites.net'];
if (!origin || allowedOrigins.indexOf(origin) !== -1) {
callback(null, true);
} else {
Expand Down

0 comments on commit 60001d5

Please sign in to comment.