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년 전2497회 조회
2개 답변
0

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

profile picture
전문가
답변함 일 년 전
-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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인