Skip to content

Commit

Permalink
fix(core): Exclude oAuth callback urls from browser-id checks (#9158)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Apr 18, 2024
1 parent 1aa9216 commit c1d07fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const skipBrowserIdCheckEndpoints = [

// We need to exclude binary-data downloading endpoint because we can't send custom headers on `<embed>` tags
`/${restEndpoint}/binary-data`,

// oAuth callback urls aren't called by the frontend. therefore we can't send custom header on these requests
`/${restEndpoint}/oauth1-credential/callback`,
`/${restEndpoint}/oauth2-credential/callback`,
];

@Service()
Expand Down

0 comments on commit c1d07fb

Please sign in to comment.