Skip to content

Commit

Permalink
chore: fixing cors issue (#473)
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Roberts <[email protected]>
  • Loading branch information
paulushcgcj and DerekRoberts authored Nov 18, 2024
1 parent 5612b3c commit 07a93fc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
-p AWS_COGNITO_ISSUER_URI=https://cognito-idp.${{ vars.AWS_REGION }}.amazonaws.com/${{ vars.VITE_USER_POOLS_ID }}
-p DASHBOARD_JOB_IDIR_USERS=${{ vars.DASHBOARD_JOB_IDIR_USERS }}
-p WMS_LAYERS_WHITELIST_USERS=${{ vars.WMS_LAYERS_WHITELIST_USERS }}
-p ALLOWED_ORIGINS=https://silva-test.nrs.gov.bc.ca/
- name: frontend
file: frontend/openshift.deploy.yml
overwrite: true
Expand Down Expand Up @@ -153,6 +154,7 @@ jobs:
-p AWS_COGNITO_ISSUER_URI=https://cognito-idp.${{ vars.AWS_REGION }}.amazonaws.com/${{ vars.VITE_USER_POOLS_ID }}
-p DASHBOARD_JOB_IDIR_USERS=${{ vars.DASHBOARD_JOB_IDIR_USERS }}
-p WMS_LAYERS_WHITELIST_USERS=${{ vars.WMS_LAYERS_WHITELIST_USERS }}
-p ALLOWED_ORIGINS=https://silva.nrs.gov.bc.ca/
- name: frontend
file: frontend/openshift.deploy.yml
overwrite: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
-p AWS_COGNITO_ISSUER_URI=https://cognito-idp.${{ vars.AWS_REGION }}.amazonaws.com/${{ vars.VITE_USER_POOLS_ID }}
-p DASHBOARD_JOB_IDIR_USERS=${{ vars.DASHBOARD_JOB_IDIR_USERS }}
-p WMS_LAYERS_WHITELIST_USERS=${{ vars.WMS_LAYERS_WHITELIST_USERS }}
-p ALLOWED_ORIGINS=https://${{ github.event.repository.name }}-${{ needs.init.outputs.route }}-frontend.apps.silver.devops.gov.bc.ca
- name: frontend
file: frontend/openshift.deploy.yml
parameters:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ our [CONTRIBUTING](CONTRIBUTING.md) guide.

As mentioned, we're here to help. Feel free to reach out and
start a conversation on Rocket chat, you can search for
`@jazz.grewal` or `@ricardo.campos`.
`@jazz.grewal` or `@paulushcgcj`.
2 changes: 1 addition & 1 deletion backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ parameters:
required: true
- name: ALLOWED_ORIGINS
description: Sets all the allowed request origins
value: "http://localhost:300*,https://*.apps.silver.devops.gov.bc.ca"
required: true
- name: WMS_LAYERS_WHITELIST_USERS
description: List of users that can see active layers on the map view
required: true
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/FriendlyDate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const FriendlyDate: React.FC<FriendlyDateProps> = ({ date }) => {
const formattedDate = isFuture(parsedDate)
? formatFutureDateAtlassianStyle(parsedDate)
: formatDateAtlassianStyle(parsedDate);

return (
<>
{(cleanDate === formattedDate) ? (<span>{formattedDate}</span>) : (
Expand Down

0 comments on commit 07a93fc

Please sign in to comment.