mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-06-05 22:06:36 +02:00
add CORS for maps.deflock.rog
This commit is contained in:
+2
-1
@@ -41,7 +41,8 @@ const start = async () => {
|
||||
'http://localhost:5173', // DeFlock Legacy
|
||||
'http://localhost:3000', // FlockHopper
|
||||
'https://deflock.org',
|
||||
'https://www.deflock.org'
|
||||
'https://www.deflock.org',
|
||||
'https://maps.deflock.org'
|
||||
];
|
||||
|
||||
if (!origin || allowedOrigins.includes(origin) || /^https:\/\/.*\.deflock\.pages\.dev$/.test(origin)) {
|
||||
|
||||
Reference in New Issue
Block a user