yangfuhai / jboot

一个优雅的微服务框架,SpringCloud 之外的另一个选择,已经使用在用户量过亿的商业产品上,有超过1000家公司在使用Jboot做极速开发...

Home Page:http://www.jboot.com.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ben8804 opened this issue · comments

<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);

什么错误呢?