Home  >  Q&A  >  body text

angular.js - angular请求后台怎么去掉请求头携带的cookie

authorization: Bearer
referer: http://127.0.0.1:8180/auth.html
accept-encoding: gzip, deflate, sdch
accept-language: zh-CN, zh;q=0.8, en;q=0.6
cookie: PHPSESSID=5uee1jrjl8eps2l8ust7te9fl3;
encoding: UTF-8

不想要这个cookie

天蓬老师天蓬老师2735 days ago619

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-15 17:00:31

    It can’t be set, the browser will set the headers parameters for you during the request, even if you use $httpProvider.defaults.headers.common['Cookie']去设置,也会报错Refused to set unsafe header "Cookie"

    reply
    0
  • Cancelreply