Skip to content

Commit 79c5c8a

Browse files
committed
hotfix deploy
1 parent 0dae1bb commit 79c5c8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/config/cors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { WHITELIST_DOMAINS } from '~/utils/constants'
22
import { env } from '~/config/environment'
33
import { StatusCodes } from 'http-status-codes'
4-
import ApiError from '~/utils/ApiError'
4+
import APIError from '~/utils/APIError'
55

66
// CORS Options Configuration
77
export const corsOptions = {
@@ -17,7 +17,7 @@ export const corsOptions = {
1717
}
1818

1919
// If the domain is not allowed, return an error
20-
return callback(new ApiError(StatusCodes.FORBIDDEN, `${origin} not allowed by our CORS Policy.`))
20+
return callback(new APIError(StatusCodes.FORBIDDEN, `${origin} not allowed by our CORS Policy.`))
2121
},
2222
optionsSuccessStatus: 200,
2323

0 commit comments

Comments
 (0)