Skip to content

Commit 13f8d53

Browse files
committed
chore: add urls to cors
1 parent ca66228 commit 13f8d53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/app.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ export const app = fastify()
1111

1212
app.register(fastifyCors, {
1313
origin: (origin, cb) => {
14-
const allowedOrigins = ['http://localhost:5500', 'https://mlkp1.github.io']
14+
const allowedOrigins = [
15+
'http://localhost:5500',
16+
'http://localhost:3003',
17+
'https://mlkp1.github.io',
18+
'https://pizzastars.shop',
19+
]
1520
if (!origin || allowedOrigins.includes(origin)) {
1621
cb(null, true)
1722
return

0 commit comments

Comments
 (0)