我正在开发一个应用程序,刚刚将它移到运行在Apache上的Shibboleth SSO后面。Shibboleth后面的静态页面按预期工作,但当我使用fetch("test.html")
时,我会得到一个CORS错误。我已经用jQuery的$.ajax
命令尝试过了,但没有得到CORS错误。
jQuery为我修复的fetch
命令缺少什么?
事实证明,jQuery.ajax
和fetch
的不同之处在于,fetch
默认情况下不发送凭据。CCD_ 7避免了CORS错误。