Issue metadata
Sign in to add a comment
|
XMLHttpRequest setRequestHeader ( customField, value ) will cause cross domain request failed
Reported by
ke.zhang...@gmail.com,
Mar 3 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Steps to reproduce the problem: 1. new XMLHttpRequest(), and open an cross domain url 2. invoke the method setRequestHeader with custom field 3. send the call ,and it success at HTTP-OPITIONS with 204, but failed go on execute the HTTP-GET method What is the expected behavior? same behaviors as the same domain call What went wrong? setRequestHeader with custom field should not effect the request call Did this work before? No Does this work in other browsers? No Chrome version: 56.0.2924.87 Channel: stable OS Version: OS X 10.11.5 Flash Version: Shockwave Flash 24.0 r0
,
Mar 3 2017
,
Mar 6 2017
Please see https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS. The preflight response needs an Access-Control-Request-Headers header.
,
Mar 7 2017
Thanks! Got it. While I found 'Access-Control-Allow-Headers': '*' is not work, I must enumerate all the custom fields in the response header.
,
Mar 14 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ke.zhang...@gmail.com
, Mar 3 2017103 KB
103 KB View Download
845 bytes
845 bytes View Download