Skip to content

Commit

Permalink
Merge pull request #370 from overture-stack/CORS-yml-changes
Browse files Browse the repository at this point in the history
Organizing score-server application.yml
  • Loading branch information
joneubank authored Jun 6, 2023
2 parents 676f0e1 + 3c8a3f5 commit c719c65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
})
public class ServerMain {

@Value("${management.endpoints.web.cors.allowedOrigins}")
@Value("${server.cors.allowedOrigins}")
private String[] allowedOrigins;

public static void main(String... args) {
Expand Down
4 changes: 3 additions & 1 deletion score-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ server:
compression:
enabled: true
mime-types: application/json

#allowedOrigins can be configured to contain multiple values, all separated by commas
cors:
allowedOrigins: http://localhost:8081
s3:
secured: true
sigV4Enabled: true
Expand Down

0 comments on commit c719c65

Please sign in to comment.