nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.2k stars 245 forks source link

Why does nuxtjs/axios trigger options requests #591

Open JiaLuo opened 1 year ago

JiaLuo commented 1 year ago

In the request interceptor, it's just set content-type:application/x-www-form-urlencoded; config.withCredentials = true; When the browser calls the interface, the options request will be triggered. How can I set it to not trigger the options request