Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit bb08c48

Browse files
committed
set origin to '*'
1 parent e3872e1 commit bb08c48

File tree

1 file changed

+2
-1
lines changed
  • packages/squeak/src/pages/api/v1/questions

1 file changed

+2
-1
lines changed

packages/squeak/src/pages/api/v1/questions/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import checkAllowedOrigins from 'src/util/checkAllowedOrigins'
99
export const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1010
await NextCors(req, res, {
1111
methods: ['GET', 'HEAD', 'OPTIONS'],
12-
origin: req.headers.origin,
12+
origin: '*',
1313
optionsSuccessStatus: 200,
14+
credentials: true,
1415
})
1516

1617
const { error: allowedOriginError } = await checkAllowedOrigins(req)

0 commit comments

Comments
 (0)