...
This commit is contained in:
parent
641e6ea2d8
commit
91b6e7ff8f
|
@ -150,7 +150,7 @@ public class Oauth2Filter extends AuthenticatingFilter {
|
|||
private void send401Error(HttpServletResponse response, String msg) throws IOException {
|
||||
response.setContentType("application/json;charset=utf-8");
|
||||
response.setHeader("Access-Control-Allow-Credentials", "true");
|
||||
response.setHeader("Access-Control-Allow-Origin", "*");
|
||||
// response.setHeader("Access-Control-Allow-Origin", "*");
|
||||
response.setStatus(HttpStatus.SC_UNAUTHORIZED);
|
||||
Result r = new Result().error(HttpStatus.SC_UNAUTHORIZED, msg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue