Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
563 views
in Technique[技术] by (71.8m points)

ie11 的 axios 设置头不起作用

  • react 16.8.6
  • ie11 浏览器
  • 设置如下:
headers: {
    'Content-Type': 'application/json;charset=utf-8',
    'Cache-Control': 'no-cache'
  }

但是不起作用:
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

get?发了一个application/json

Content-Type 一般都是用来描述 body 里面的信息,你发post吧


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.5k users

...