Cognito Own Domain returning blank page with errors in console.

0

Hi All,

I've added my domain to Route53, created the certificate for it and added it to the own domain section of Cognito. I've then created the alias record in route53 to point to the cloudfront.net URL that Cognito gave me. But when I go to the CloudFront URL or the auth.mydomain.co.uk I specified in Cognito, I get a blank page with some errors in the console, I've pasted them below.

Refused to apply style from 'https://auth.mydomain.co.uk/null/null/css/bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

(index):1 Refused to apply style from 'https://auth.mydomain.co.uk/null/null/css/cognito-login.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

jquery-3.4.1.min.js:1 Failed to load resource: the server responded with a status of 400 ()
amazon-cognito-advanced-security-data.min.js:1 Failed to load resource: the server responded with a status of 400 ()

jquery-3.4.1.min.js:1 Failed to load resource: the server responded with a status of 400 ()
(index):120 Uncaught ReferenceError: $ is not defined at (index):120

/favicon.ico:1 Failed to load resource: the server responded with a status of 400 ()
(index):1 Refused to apply style from 'https://auth.mydomain.co.uk/null/null/css/bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

(index):1 Refused to apply style from 'https://auth.mydomain.co.uk/null/null/css/cognito-login.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

MattM31
已提問 4 年前檢視次數 2504 次
2 個答案
0

Go to User Pool -> App integration -> Click on App client name -> You will see Hosted UI settings.

profile picture
專家
已回答 1 年前
-1

See this answer: {message:id=802747}

Or

Go to your Cognito console / User pool / App client settings, and click 'Launch Hosted UI' in the bottom of the settings form. This will give you all necessary parameters

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南