Spaces:
Sleeping
Sleeping
Sasha commited on
Commit ·
ba4f372
1
Parent(s): 100b373
fix: allow cloudflare pages domain in CORS
Browse files- server/server.js +1 -0
server/server.js
CHANGED
|
@@ -56,6 +56,7 @@ const allowedOrigins = [
|
|
| 56 |
'http://localhost:5173', // Vite React local dev
|
| 57 |
'http://localhost:3000', // Express local serving
|
| 58 |
'https://mimic42.qzz.io', // Custom production domain
|
|
|
|
| 59 |
];
|
| 60 |
|
| 61 |
if (process.env.ALLOWED_ORIGINS) {
|
|
|
|
| 56 |
'http://localhost:5173', // Vite React local dev
|
| 57 |
'http://localhost:3000', // Express local serving
|
| 58 |
'https://mimic42.qzz.io', // Custom production domain
|
| 59 |
+
'https://winx-prinx-statistics.pages.dev', // Cloudflare Pages default domain
|
| 60 |
];
|
| 61 |
|
| 62 |
if (process.env.ALLOWED_ORIGINS) {
|