Skip to content

Commit

Permalink
Update configureMiddlewares.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV authored Dec 15, 2023
1 parent 822a6c3 commit 8234ae0
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:3000', 'https://www.intelliq.arc-solutions.xyz', 'https://www.intelliq-dev.arc-solutions.xyz', 'https://www.intelliq.dev'];
const allowedOrigins = ['http://localhost:3000', 'https://www.intelliq.arc-solutions.xyz', 'https://www.intelliq-dev.arc-solutions.xyz', 'https://www.intelliq.dev', 'https://www.beta.intelliq.dev'];
if (!origin || allowedOrigins.indexOf(origin) !== -1) {
callback(null, true);
} else {
Expand Down

0 comments on commit 8234ae0

Please sign in to comment.