Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CORS settings for frontend server #14483

Merged
merged 1 commit into from
Mar 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ jhipster:
# CORS is only enabled by default with the "dev" profile
cors:
# Allow Ionic for JHipster by default (* no longer allowed in Spring Boot 2.4+)
allowed-origins: "http://localhost:8100"
allowed-origins: "http://localhost:8100,http://localhost:9000"
allowed-methods: "*"
allowed-headers: "*"
<%_ if (authenticationType === 'session') { _%>
Expand All @@ -367,7 +367,7 @@ jhipster:
# CORS is disabled by default on microservices, as you should access them through a gateway.
# If you want to enable it, please uncomment the configuration below.
# cors:
# allowed-origins: "*"
# allowed-origins: "http://localhost:9000"
# allowed-methods: "*"
# allowed-headers: "*"
# exposed-headers: "Authorization,Link,X-Total-Count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jhipster:
name: "<%= frontendAppName %>"
# By default CORS is disabled. Uncomment to enable.
# cors:
# allowed-origins: "*"
# allowed-origins: "http://localhost:8100,http://localhost:9000"
# allowed-methods: "*"
# allowed-headers: "*"
<%_ if (authenticationType === 'session') { _%>
Expand Down