Skip to content

Commit

Permalink
fix: #dev multiple cors origins
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator committed Nov 27, 2024
1 parent 445e020 commit 03510c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev.kodemy.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
ELASTICSEARCH_HOSTS: ${{ vars.RABBITMQ_PASSWORD }}
EUREKA_URL: ${{ vars.EUREKA_URL }}
FRONTEND_PUBLIC_HOST: ${{ vars.FRONTEND_PUBLIC_HOST }}
ALLOWED_ORIGINS: ${{ vars.ALLOWED_ORIGINS }}
CORS_ALLOWED_ORIGINS: ${{ vars.CORS_ALLOWED_ORIGINS }}
GATEWAY_PUBLIC_HOST: ${{ vars.GATEWAY_PUBLIC_HOST }}
OAUTH_GITHUB_ID: ${{ vars.OAUTH_GITHUB_ID }}

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
"ELASTICSEARCH_PASSWORD"
"EUREKA_URL"
"FRONTEND_PUBLIC_HOST"
"ALLOWED_ORIGINS"
"CORS_ALLOWED_ORIGINS"
"GATEWAY_PUBLIC_HOST"
"OAUTH_GITHUB_ID"
"OAUTH_GITHUB_KEY"
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
RABBITMQ_HOST,RABBITMQ_PORT,RABBITMQ_USERNAME,RABBITMQ_PASSWORD,
ELASTICSEARCH_HOSTS,ELASTICSEARCH_USERNAME,ELASTICSEARCH_PASSWORD,
EUREKA_URL,
FRONTEND_PUBLIC_HOST,ALLOWED_ORIGINS,
FRONTEND_PUBLIC_HOST,CORS_ALLOWED_ORIGINS,
GATEWAY_PUBLIC_HOST,
OAUTH_GITHUB_ID,OAUTH_GITHUB_KEY,
JWT_KEY
Expand Down
2 changes: 1 addition & 1 deletion kodemy-api-gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ logging:
app:
security:
cors:
allowed-origins: ${ALLOWED_ORIGINS:[]}
allowed-origins: ${CORS_ALLOWED_ORIGINS:[]}

eureka:
client:
Expand Down

0 comments on commit 03510c3

Please sign in to comment.