Skip to content

Commit 7967347

Browse files
committed
Force HTTPS correctly
1 parent 380e639 commit 7967347

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

integrations/cognito/src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export type CognitoAction = { action: 'save.config' };
4545
const getDomainWithHttps = (url: string): string => {
4646
if (url.startsWith('https://')) {
4747
return url;
48+
} else if (url.startsWith('http://')) {
49+
return url.replace('http', 'https');
4850
} else {
4951
return `https://${url}`;
5052
}

0 commit comments

Comments
 (0)