nginx转发,put,delete不可用 5C

nginx中服务A(前端)和服务B(后端),服务A请求服务B的接口,get和post请求可以,但是delete和put请求就会出错。( has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.)

1个回答

nginx中服务A(前端)和服务B(后端),服务A请求服务B的接口,get和post请求可以,但是delete和put请求就会出错。( has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!