-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无论是否设置header,method会变为OPTIONS,我是post,导致服务端获取不到参数 #21
Comments
|
好的,明白了。 |
用了qs然后设置编码格式可以了,如果我希望在拦截器里面用qs转参数的话应该如何做? |
|
好的,谢------------------------------------------------------------------发件人:wendux <notifications@github.com>发送时间:2018年2月22日(星期四) 10:40收件人:wendux/fly <fly@noreply.github.com>抄 送:梁铭枫 <mingfeng@xingliao.top>; State change <state_change@noreply.github.com>主 题:Re: [wendux/fly] 无论是否设置header,method会变为OPTIONS,我是post,导致服务端获取不到参数 (#21)
config.body
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
后来看了下chrome的控制台,发现Content-Type还是application/json;charset=UTF-8,下面是我设置的代码,无法设置成功
`
import flyio from "flyio";
flyio.config.baseURL = URL_API_BASE_DOMAIN
flyio.config.timeout = 10000
flyio.config.withCredentials = true
flyio.config.headers = {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
}
`
The text was updated successfully, but these errors were encountered: