解决移动端跨域问题
This commit is contained in:
parent
44fb1eaca1
commit
6e0b588959
|
@ -21,11 +21,7 @@ import org.springframework.http.HttpHeaders;
|
|||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
@ -56,6 +52,7 @@ public class EntranceController {
|
|||
protected ISysApplicationService sysApplicationService;
|
||||
@RequestMapping(value = "/option")
|
||||
@ResponseBody
|
||||
@CrossOrigin(origins = "*")
|
||||
public JsonResultEntity option(ServletRequest servletRequest, ServletResponse servletResponse) throws Exception {
|
||||
return entranceService.doBusiness(servletRequest, servletResponse);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue