Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 559c4fd

Browse files
authored
Merge pull request #29 from aws/updated-domain-matcher
chore: update domain matcher
2 parents 34907f1 + 95139ef commit 559c4fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const onNotebookEventReceived = (
214214
* do an early return.
215215
*/
216216
const domainMatcher =
217-
/^https:\/\/.*\.notebookauthproxy\.gluestudio\.(aws\.dev|a2z\.org\.cn)$/i;
217+
/^(https:\/\/)(.*\.)?(console\.amazonaws\.cn|console\.aws\.amazon\.com|console\.amazonaws-us-gov\.com|.*notebookauthproxy\.gluestudio\.a2z\.org\.cn|.*notebookauthproxy\.gluestudio\.aws\.dev)(\/.*)?$/;
218218

219219
if (!domainMatcher.test(origin)) {
220220
fetch(

0 commit comments

Comments
 (0)