We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca66228 commit 13f8d53Copy full SHA for 13f8d53
1 file changed
src/app.ts
@@ -11,7 +11,12 @@ export const app = fastify()
11
12
app.register(fastifyCors, {
13
origin: (origin, cb) => {
14
- const allowedOrigins = ['http://localhost:5500', 'https://mlkp1.github.io']
+ const allowedOrigins = [
15
+ 'http://localhost:5500',
16
+ 'http://localhost:3003',
17
+ 'https://mlkp1.github.io',
18
+ 'https://pizzastars.shop',
19
+ ]
20
if (!origin || allowedOrigins.includes(origin)) {
21
cb(null, true)
22
return
0 commit comments