mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
Add chrome-extension as allowable domain for auth redirect URLs
This commit is contained in:
1 parent
f5584dcca4
commit
f79185257b
1 file changed
+3
-1
@@ -18,8 +18,10 @@ const appRegex =
|
||||
// Regex from https://stackoverflow.com/a/18696953/4807782
|
||||
const localhostRegex = /^(?:^|\s)((https?:\/\/)?(?:localhost|[\w-]+(?:\.[\w-]+)+)(:\d+)?(\/\S*)?)/i
|
||||
|
||||
const chromeExtensionRegex = /chrome-extension:\/\/([a-zA-Z]*)/gm
|
||||
|
||||
// combine the above regexes
|
||||
export const domainRegex = new RegExp(
|
||||
`(${baseDomainRegex.source})|(${localhostRegex.source})|(${appRegex.source})`,
|
||||
`(${baseDomainRegex.source})|(${localhostRegex.source})|(${appRegex.source})|(${chromeExtensionRegex.source})`,
|
||||
'i'
|
||||
)
|
||||
Reference in new issue
Block a user