Skip to content
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

使用XMLHttpRequest,POST数据,结果服务端收到OPTIONS方法。出错了 #73

Closed
hanyu363 opened this issue Mar 20, 2018 · 4 comments

Comments

@hanyu363
Copy link

2018/03/20 07:10:48 [error] 10#10: *1 [lua] server.lua:25: func(): Oh! no handler to process method: options, client: 114.225.31.232, server: , request: "OPTIONS /account/login HTTP/1.1", host: "passport.hog16.com", referrer: "http://localhost:7456/"

@sumory
Copy link
Owner

sumory commented Mar 24, 2018

ajax发起POST类请求我一直在用,未出现你说的这种问题

@sumory sumory closed this as completed Apr 4, 2018
@cloudfreexiao
Copy link

@hanyu363 我也出现了这个 问题 用的是 axios post 请问 你解决了吗

@cloudfreexiao
Copy link

我用 postman 就没问题。
很尴尬

@linsir
Copy link

linsir commented Aug 26, 2018

前端框架在请求接口时,会先用OPTIONS去探测。这里报这个错,是因为路由里没定义OPTIONS方法。

@sumory sumory reopened this Aug 27, 2018
@ms2008 ms2008 closed this as completed Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants