Skip to content

Commit b1c3042

Browse files
authored
Merge pull request #190 from coverbeck/location_header_for_cors
Expose Location header in CORS #189
2 parents e06d1a0 + 90f3e4c commit b1c3042

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ $ mvn spring-boot:run
9090

9191
Alternatively, you can run the application from your IDE as a simple Java application by importing the Maven project.
9292

93+
You need to install [Graphviz](http://www.graphviz.org/) for all unit tests to pass.
94+
9395
You can create an executable JAR file by using:
9496

9597
mvn clean install

src/main/java/org/commonwl/view/WebConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
6868

6969
@Override
7070
public void addCorsMappings(CorsRegistry registry) {
71-
registry.addMapping("/**"); // .setMaxAge(Long.MAX_VALUE)
71+
registry.addMapping("/**").exposedHeaders("Location"); // .setMaxAge(Long.MAX_VALUE)
7272
}
7373
}

0 commit comments

Comments
 (0)