dounai1306 / vue

vue的一些相关记录
0 stars 0 forks source link

vue http.options.headers 配置 #22

Open dounai1306 opened 5 years ago

dounai1306 commented 5 years ago
Vue.http.options.headers = {
  'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  // 'Content-Type': 'application/json;charset=utf-8',
  'Accept-Language': 'zh-CN'
}
Vue.http.options.crossOrigin = true
Vue.http.options.xhr = {withCredentials: true}
Vue.http.options.emulateJSON = true
Vue.http.options.credentials = true