Skip to content

Commit

Permalink
New CORS golf.ajktown.com (#139)
Browse files Browse the repository at this point in the history
# Background
Allow `golf.ajktown.com`

## Checklist Before PR Review
- [x] The following has been handled:
  -  `Draft` is set for this PR
  - `Title` is checked
  - `Background` is filled
  - `Assignee` is set
  - `Labels` are set
  - `development` is linked if related issue exists

## Checklist (Right Before PR Review Request)
- [x] The following has been handled:
  - `TODOs` are handled and checked
  - Final Operation Check is done
  - Make this PR as an open PR

## Checklist (Reviewers)
- [x] Check if there are any other missing TODOs that are not yet listed
- [x] Review Code
- [x] Every item on the checklist has been addressed accordingly
- [x] If `development` is associated to this PR, you must check if every
TODOs are handled
  • Loading branch information
mlajkim authored Aug 17, 2024
1 parent 6ed726e commit 3f7dc23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- name: LISTENING_PORT
value: "3000"
- name: ALLOWED_CORS
value: "https://wordnote.ajktown.com,https://consistency.ajktown.com"
value: "https://wordnote.ajktown.com,https://consistency.ajktown.com,https://golf.ajktown.com"
- name: ENV
value: "prod"
- name: IS_CHAT_GPT_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion src/lambdas/get-env.lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const envLambda = {
},
getCorsOrigin: (): string[] => {
const got = envLambda.get(SupportedEnvAttr.Cors)
if (!got) return ['http://localhost:3000,http://localhost:3100'] // default value
if (!got) return ['http://localhost:3000,http://localhost:3100','http://localhost:3200'] // default value

return got.split(',')
},
Expand Down

0 comments on commit 3f7dc23

Please sign in to comment.