There was an error while loading. Please reload this page.
1 parent 0dae1bb commit 79c5c8aCopy full SHA for 79c5c8a
1 file changed
api/src/config/cors.js
@@ -1,7 +1,7 @@
1
import { WHITELIST_DOMAINS } from '~/utils/constants'
2
import { env } from '~/config/environment'
3
import { StatusCodes } from 'http-status-codes'
4
-import ApiError from '~/utils/ApiError'
+import APIError from '~/utils/APIError'
5
6
// CORS Options Configuration
7
export const corsOptions = {
@@ -17,7 +17,7 @@ export const corsOptions = {
17
}
18
19
// If the domain is not allowed, return an error
20
- return callback(new ApiError(StatusCodes.FORBIDDEN, `${origin} not allowed by our CORS Policy.`))
+ return callback(new APIError(StatusCodes.FORBIDDEN, `${origin} not allowed by our CORS Policy.`))
21
},
22
optionsSuccessStatus: 200,
23
0 commit comments