When running the user flow after following this guide, I get quickly redirected to jwt.ms where it tells me there was a server error "The resource 'https://<my-tenant>.blob.core.windows.net/<my-storage>/custom-ui.html' contains script errors preventing it from being loaded."
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@KepanoEgg Thanks for your comment. We are actively investigating and will get back to you shortly.
I'm getting the same problem when using through a WebUI but it's working in a mobile app.
@mmacy Could you please help with guidance on this documentation ? As per the customer's above the details provided in the tutorial doc fail through a Web UI ?
@shashishailaj Yes, adding this one to my queue. Were you able to repro, by chance?
Usually the only reason for this is because the CORS setup was incorrect.
Can you review:
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-customize-ui#enable-cors
If your tenant is contoso.onmicrosoft.com, then the CORS setting must be
https://contoso.b2clogin.com
And
You must select the b2clogin.com domain at this step:
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-customize-ui#test-the-user-flow
And not use the default loginl.microsoftonline.com domain.
And can you go to test-cors.org to test your https://
Expected response is
Fired XHR event: loadstart
Fired XHR event: readystatechange
Fired XHR event: readystatechange
Fired XHR event: progress
Fired XHR event: readystatechange
Fired XHR event: load
XHR status: 200
XHR status text: OK
XHR exposed response headers:
The issue was that I glossed over the "must be lower case" part. I know it's on me for skipping that, but there's at least two of those in these tutorials, I feel like maybe that text should be bold, and put before you tell someone what to type.
@KepanoEgg Requesting this issue be closed as the original question has been addressed. On next rev of this article I'll highlight the lowercase requirement, thanks for the call-out.
Most helpful comment
The issue was that I glossed over the "must be lower case" part. I know it's on me for skipping that, but there's at least two of those in these tutorials, I feel like maybe that text should be bold, and put before you tell someone what to type.