Skip to content

Commit 0ee7b3d

Browse files
authored
Merge pull request #170 from PotLock/testnet
use regex for cors
2 parents a1ea9e9 + 623fc48 commit 0ee7b3d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

base/settings.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,14 @@
232232
"https://bos.potlock.io",
233233
"https://app.potlock.io",
234234
"https://bos.potlock.app",
235-
"https://app.potlock.app",
236-
"https://staging.alpha.potlock.org",
237-
"https://staging.alpha.potlock.io",
238-
"https://staging.app.potlock.io",
239-
"https://staging.app.potlock.org",
235+
"https://app.potlock.app"
240236
]
241237

242238
CORS_ALLOWED_ORIGIN_REGEXES = [
243239
"^https:\/\/potlock-next-[\w-]+-potlock\.vercel\.app\/?$",
244-
"^https?:\/\/.*\.?grantpicks\.com$"
240+
"^https?:\/\/.*\.?grantpicks\.com$",
241+
"^https:\/\/staging\.app\.potlock\.(org|io|xyz|app)\/?$",
242+
"^https:\/\/staging\.alpha\.potlock\.(org|io|xyz|app)\/?$"
245243
]
246244

247245
# REDIS / CACHE CONFIGS

0 commit comments

Comments
 (0)