Skip to content

Commit

Permalink
add cors for /api-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed May 13, 2024
1 parent 9c6985e commit 013bb01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# misc
.env
.env.production
.DS_Store
.env.production
.env.development.local
Expand All @@ -10,4 +10,5 @@ encodeURIComponent.ts
aaaaaaaaaa.cjs
node_modules
lmao.js
.env.local
.env.development
bun.lockb
Binary file modified bun.lockb
Binary file not shown.
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', 'https://www.beta.intelliq.dev', 'https://www.internal.intelliq.dev'];
const allowedOrigins = ['http://localhost:3000', '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'];
if (!origin || allowedOrigins.indexOf(origin) !== -1) {
callback(null, true);
} else {
Expand Down

0 comments on commit 013bb01

Please sign in to comment.