Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在开发一个具有单独 API 和前端的 Web 应用程序。
出于生产目的,我希望在远程服务器上托管 API 时在本地开发 Web 应用程序。
问题是 API 在SAML身份验证以及第二阶段的Mod Auth背后。
使用邮递员和 wget 我可以通过在请求中添加 auth_tkt cookie 来访问 API 端点。但是我无法使用 AJAX 访问相同的端点。
我需要帮助来执行相同的操作。
只是为了帮助其他面临类似问题的人。这个问题的解决方案是使用禁用安全性的铬。它会随请求一起发送您的会话 cookie。之前出现的 CORS 也没有问题。