Restrictions of XMLHttpRequest's getResponseHeader()?

后端 未结 2 592
感动是毒
感动是毒 2020-11-30 06:19

I\'ve noticed that the results of and XMLHttpRequest.getResponseHeader() don\'t always match the real headers returned (if the request is made in a regular mann

2条回答
  •  有刺的猬
    2020-11-30 07:14

    It's the Access-Control-Allow-Origin header and the way it allows to prevent which headers are exposed to the browser. Docs at mozilla.

提交回复
热议问题