Skip to content

Commit

Permalink
Merge pull request #2 from medizininformatik-initiative/fix-cors
Browse files Browse the repository at this point in the history
add location header to exposed headers
  • Loading branch information
juliangruendner authored and DiCanio committed May 16, 2022
2 parents 00a36a0 + 9561be9 commit 1421b69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Empty file added ontology/ui_profiles/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
*/
@RequestMapping("api/v1/query-handler")
@RestController
@CrossOrigin
@Slf4j
@CrossOrigin(origins = "${cors.allowedOrigins}", exposedHeaders = "Location")
public class QueryHandlerRestController {

private final QueryHandlerService queryHandlerService;
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ logging:
org.springframework.web: ${LOG_LEVEL:warn}

cors:
allowedOrigins:
- "*"
allowedOrigins: ${ALLOWED_ORIGINS:http://localhost}


0 comments on commit 1421b69

Please sign in to comment.