Why is this CORS request failing only in Firefox?

后端 未结 2 1089
无人及你
无人及你 2020-12-15 17:18

I\'m implementing CORS with credentials and a preflight request and I\'m a bit mystified why the preflight request consistently fails in Firefox 30 but works in Safari (7.0.

2条回答
  •  生来不讨喜
    2020-12-15 17:40

    Note that Firefox is the only browser that is compliant here. If parsing of Access-Control-Allow-Methods fails per https://fetch.spec.whatwg.org/#cors-preflight-fetch a network error needs to be returned. And per the ABNF for the header value it is most definitely a comma-separated value.

提交回复
热议问题