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

服务器不支持OPTIONS请求 #111

Closed
Dearkano opened this issue May 9, 2018 · 1 comment
Closed

服务器不支持OPTIONS请求 #111

Dearkano opened this issue May 9, 2018 · 1 comment
Assignees

Comments

@Dearkano
Copy link

Dearkano commented May 9, 2018

开放端口使用curl或者远程用chrome的rest http插件调用都没问题 跨域也没问题
但是浏览器实现的时候发送fetch请求,预检OPTIONS挂了,501 not implemented 服务器不支持OPTIONS请求,想了想这个是不是nebulas本身不支持呢?

@ChengOrangeJu
Copy link
Contributor

rpc {
rpc_listen: ["0.0.0.0:8684"]
http_listen: ["0.0.0.0:8685"]
http_module: ["api","admin"]
# HTTP CORS allowed origins
http_cors: ["*"]
}

add http_cors:["*"] in your default config.
OPTIONS method is not supported

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

2 participants