pagekit / vue-resource

The HTTP client for Vue.js
MIT License
10.09k stars 1.6k forks source link

payload request can't carry cookie and HTTP body. #634

Open answershuto opened 7 years ago

answershuto commented 7 years ago

When I use credentials to send a payload request that carry the cookie, it can't send the request with cookie and HTTP body.

Vue.http.post(url, params, {credentials : true} );

but I add this code, it send a formdata request with cookie.

Vue.http.options.emulateJSON = true;

why?

everlose commented 7 years ago

wtf? where is the demo ?