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
asked 4 years ago2455 views
2 Answers
0

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

profile picture
EXPERT
answered a year ago
-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

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions