简体   繁体   English

用于登录/注册生成404的Azure AD B2C自定义登录页面

[英]Azure AD B2C custom login page for signin/signup generating 404

Follow one of the quick start/how-to guides I uploaded my custom html (wingtips) file to blob storage. 按照快速入门/操作指南之一,我将自定义html(wingtips)文件上传到blob存储。

https://mystorage.blob.core.windows.net/b2cpages/unified.html https://mystorage.blob.core.windows.net/b2cpages/unified.html

I then tested that I was able to access the page through a web browser with success. 然后我测试了我能够通过Web浏览器成功访问该页面。

I then configured the tenant signin/signup policy to use the custom page and the tenant is returning a 404. (using all defaults the tenant works fine) 然后,我配置了租户登录/注册策略以使用自定义页面,并且租户返回404.(使用所有默认值,租户工作正常)

Any suggestions? 有什么建议么? If you need additional details just comment and I will update. 如果您需要其他详细信息,请注释,我会更新。

Thanks, Chris 谢谢,克里斯

Please double check the custom page uri is same as the correct uri for the blob. 请仔细检查自定义页面uri与blob的正确uri相同。

If you were using the Chrome, you can also open the developer tools when you navigate the login page for the Azure AD B2C tenant. 如果您使用的是Chrome,则还可以在导航Azure AD B2C租户的登录页面时打开开发人员工具。 You can see the request for the blob can copy that URL in the browser to see whether it can opened the successfully. 您可以看到blob的请求可以在浏览器中复制该URL以查看它是否可以成功打开。

Thank you for your response Fei Xue, however I was able to resolve the issue. 感谢您对Fei Xue的回复,但我能够解决这个问题。 I went back and double checked everything and it turns out that I must not have saved/applied the CORs policy. 我回过头来仔细检查了一切,事实证明我一定没有保存/应用CORs政策。

I added the CORs, did a quick test, and as of right now everything seems to be working. 我添加了CORs,进行了快速测试,截至目前,一切似乎都在起作用。 More detailed testing to follow today. 今天要进行更详细的测试。

Thank you, Chris 谢谢你,克里斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM