尝试添加以下内容:
http.cors.enabled: true
http.cors.allow-credentials: true
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.max-age: 0
http.cors.allow-origin: "*"
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length
如果依然无效,建议使用server模式,部分情况下确实会出现无法避免的跨域问题
本文探讨了如何通过CORS配置来处理HTTP请求中的跨域问题,包括启用CORS、设置允许的请求方法、源和凭证,以及常见解决方案,如使用server模式应对复杂场景。

被折叠的 条评论
为什么被折叠?



