@IocBean
@At("/login")
@Ok("json")
@Fail("http:500")
public class UserModule {
@At
@Filters(@By(type=CrossOriginFilter.class))
public String getInfo(HttpServletRequest request) {
在方法上设置了跨域,但是前端调用的时候还是会报错,求指教是什么问题
Failed to load http://localhost:8080/jackfruit/login: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8585' is therefore not allowed access.