Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from zlict/features/authentication
Browse files Browse the repository at this point in the history
Expose headers
  • Loading branch information
openscript authored Sep 20, 2019
2 parents 7cbb42d + 52287b2 commit 901ee3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .idea/runConfigurations/Run_PunchClock__dev_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
public class WebConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("*").allowedMethods("*");
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*")
.exposedHeaders(
"Access-Control-Allow-Headers",
"Access-Control-Allow-Origin",
"Access-Control-Expose-Headers",
"Authorization",
"Cache-Control",
"Content-Type",
"Origin"
);
}
}

0 comments on commit 901ee3f

Please sign in to comment.