--- title: "使用外部浏览器时, SSO 认证失败 | localhost 错误" slug: "sso-authentication-fails-when-using-external-browser-localhost-error" updated: 2026-07-30T03:28:11Z published: 2026-07-30T03:28:11Z canonical: "knowledge.catonetworks.com/sso-authentication-fails-when-using-external-browser-localhost-error" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.catonetworks.com/llms.txt > Use this file to discover all available pages before exploring further. # 使用外部浏览器时, SSO 认证失败 | localhost 错误 ## 说明 Cato SDP客户端 在使用外部浏览器时无法通过SSO认证。 ## 问题 使用外部浏览器进行SSO认证时, 浏览器将加载 http://localhost:49152 进行认证过程。 浏览器可能会为localhost域名强制执行HTTP严格传输安全性 (HSTS) 并重定向到 https://localhost:49152。 如果发生这种情况, 浏览器将显示错误, 认证将失败。 Microsoft Edge示例 ![edge-example.png](https://cdn.document360.io/81d0367c-2b69-4ba8-b412-1c8f46ce677e/Images/Documentation/9199022697629.png?sv=2026-02-06&spr=https&st=2026-11-19T06%3A50%3A16Z&se=2026-11-19T07%3A50%3A16Z&sr=b&sp=r&sig=iXN14IdHUhGMq3mY%2F8qX9Wy%2BuQxwe6BotWlYUNEdCGQ%3D) ## 解决方案 1. 切换到嵌入式浏览器以进行SSO认证。 它必须在CMA中的**访问 > 客户端访问 > 身份验证**下为账户启用,否则客户端将在认证过程中新切换回外部浏览器。 2. 如果希望使用外部浏览器进行认证,可以在默认浏览器中禁用本地主机域的HSTS。 **注意:** 本地主机域的HSTS可能会由其他本地网页应用程序重新启用,通常在开发环境中。 使用嵌入式浏览器是首选解决方案。 **Chrome/Edge** 1. 在地址栏中粘贴相关网址: **Chrome:** chrome://net-internals/#hsts **Edge:** edge://net-internals/#hsts 2. 在**删除域名安全策略**部分,在**域名**字段中输入 **localhost** 并点击 **删除**按钮。 ![chrome-example.png](https://cdn.document360.io/81d0367c-2b69-4ba8-b412-1c8f46ce677e/Images/Documentation/9199036814749.png?sv=2026-02-06&spr=https&st=2026-11-19T06%3A50%3A16Z&se=2026-11-19T07%3A50%3A16Z&sr=b&sp=r&sig=wF%2Bn2OypkZRxvCpDN04q%2B4c5mMFpKtAJ2zczsPYoB8M%3D) 3. 重新启动Cato SDP客户端认证过程。 **Firefox** 1. 关闭Firefox中的所有打开的标签页。 2. 按Ctrl + Shift + H (Mac上为Cmd + Shift + H) 打开库窗口(历史记录)。 3. 在搜索栏中输入 **localhost** 。 4. 右键点击localhost项并选择 **忘记这个站点**。 ![firefox-example.png](https://cdn.document360.io/81d0367c-2b69-4ba8-b412-1c8f46ce677e/Images/Documentation/9199038009629.png?sv=2026-02-06&spr=https&st=2026-11-19T06%3A50%3A16Z&se=2026-11-19T07%3A50%3A16Z&sr=b&sp=r&sig=gOqDjKOnJegYuCW1QaqL33Khh2mMPxTckUBnpU7%2Fi04%3D) 5. 重新启动Cato SDP客户端认证过程。