Skip to content

Commit

Permalink
Add API CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri authored Apr 25, 2024
1 parent 857f9a6 commit 75cefd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
--network=web \
--env AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=${{ secrets.SQL_ALCHEMY_CONN }} \
--env AIRFLOW__CORE__FERNET_KEY=${{ secrets.FERNET_KEY }} \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS: 'content-type, origin, authorization, accept' \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS: 'GET, POST, PATCH, OPTIONS, DELETE' \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS: 'https://api.test.profcomff.com' \
--name ${{ env.CONTAINER_NAME }} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
Expand Down Expand Up @@ -120,5 +123,8 @@ jobs:
--network=web \
--env AIRFLOW__DATABASE__SQL_ALCHEMY_CONN='${{ secrets.SQL_ALCHEMY_CONN }}' \
--env AIRFLOW__CORE__FERNET_KEY=${{ secrets.FERNET_KEY }} \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS: 'content-type, origin, authorization, accept' \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS: 'GET, POST, PATCH, OPTIONS, DELETE' \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS: 'https://api.profcomff.com' \
--name ${{ env.CONTAINER_NAME }} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 75cefd0

Please sign in to comment.