Skip to content

Commit a8ffd38

Browse files
pierrejeambrunkaxil
authored andcommitted
[v3-0-test] Update run-behind-proxy doc for CSP (#50236)
* Update run-behind-proxy doc for CSP * Update airflow-core/docs/howto/run-behind-proxy.rst --------- (cherry picked from commit 468bfe3) Co-authored-by: Pierre Jeambrun <[email protected]> Co-authored-by: Kaxil Naik <[email protected]>
1 parent 06f909c commit a8ffd38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

airflow-core/docs/howto/run-behind-proxy.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ To do so, you need to set the following setting in your ``airflow.cfg``::
5151
}
5252
}
5353

54+
- Some parts of the UI are rendered inside iframes (Auth managers security links for instance), you need to make sure that you are not setting a restricted CSP for iframe rendering
55+
such as ``frame-ancestors 'none'``. You can set the CSP header in your reverse proxy configuration, for example::
56+
57+
add_header Content-Security-Policy "frame-ancestors 'self';";
58+
5459
- Use ``--proxy-headers`` CLI flag to tell Uvicorn to respect these headers: ``airflow api-server --proxy-headers``
5560

5661
- If your proxy server is not on the same host (or in the same docker container) as Airflow, then you will need to

0 commit comments

Comments
 (0)