Skip to content

Commit 46e432b

Browse files
authored
fix(core): Exclude oAuth callback urls from browser-id checks (#9158)
1 parent 9bd8e10 commit 46e432b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli/src/auth/auth.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const skipBrowserIdCheckEndpoints = [
4242

4343
// We need to exclude binary-data downloading endpoint because we can't send custom headers on `<embed>` tags
4444
`/${restEndpoint}/binary-data`,
45+
46+
// oAuth callback urls aren't called by the frontend. therefore we can't send custom header on these requests
47+
`/${restEndpoint}/oauth1-credential/callback`,
48+
`/${restEndpoint}/oauth2-credential/callback`,
4549
];
4650

4751
@Service()

0 commit comments

Comments
 (0)