Skip to content

Commit

Permalink
more specific protocol validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghel committed Sep 30, 2024
1 parent de0243c commit c16eb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native.auth.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export class NativeAuthServer {
}

const [protocol, domain] = components;
if (protocol !== '' && !protocol.includes('://')) {
if (protocol !== '' && !['https://', 'http://'].includes(protocol)) {
throw new NativeAuthInvalidWildcardOriginError();
}

Expand Down

0 comments on commit c16eb45

Please sign in to comment.