Skip to content

Commit

Permalink
Added authorization to CORS header
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed Apr 21, 2021
1 parent 9aa1d11 commit 8a971bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/ddb/labs/ef2so/filter/CORSFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void filter(ContainerRequestContext request, ContainerResponseContext res
}

response.getHeaders().add("Access-Control-Allow-Origin", allowOrigin);
response.getHeaders().add("Access-Control-Allow-Headers", "Origin, Content-Type, Accept");
response.getHeaders().add("Access-Control-Allow-Headers", "Origin, Content-Type, Accept, Authorization");
response.getHeaders().add("Access-Control-Allow-Methods", "GET");
}
}

0 comments on commit 8a971bf

Please sign in to comment.