Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add chrome-extension as allowable domain for auth redirect URLs

Joshen Limf79185257b96
diff --git a/studio/components/interfaces/Auth/Auth.constants.ts b/studio/components/interfaces/Auth/Auth.constants.ts
index dd1aea4b908..08400fdefff 100644
--- a/studio/components/interfaces/Auth/Auth.constants.ts
+++ b/studio/components/interfaces/Auth/Auth.constants.ts
@@ -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'
)