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

Axios跨域调用 预检使用OPTIONS报错 #67

Closed
ben8804 opened this issue Mar 11, 2019 · 1 comment
Closed

Axios跨域调用 预检使用OPTIONS报错 #67

ben8804 opened this issue Mar 11, 2019 · 1 comment

Comments

@ben8804
Copy link

ben8804 commented Mar 11, 2019

<dependency>
	<groupId>io.jboot</groupId>
	<artifactId>jboot</artifactId>
	<version>2.0-rc.13</version>
</dependency>

CORSInterceptor Line50

String method = inv.getController().getRequest().getMethod();
 if (METHOD_OPTIONS.equals(method)) {
        inv.getController().renderText("");
        return;
}
doProcessCORS(inv, enableCORS);
@yangfuhai
Copy link
Owner

什么错误呢?

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