diff options
| author | 2024-08-19 04:27:01 +0100 | |
|---|---|---|
| committer | 2024-08-19 04:27:01 +0100 | |
| commit | f787db94d093356905ca24f2c4f9124587473dff (patch) | |
| tree | 857c9863da2e2f64b4e7c3773eec9d48846f896e /thallium-backend/src/app.py | |
| parent | Add Scalar to application (diff) | |
Add connect-src 'self' to allow try-it in Scalar to work
Diffstat (limited to 'thallium-backend/src/app.py')
| -rw-r--r-- | thallium-backend/src/app.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thallium-backend/src/app.py b/thallium-backend/src/app.py index bfd85dd..98a0500 100644 --- a/thallium-backend/src/app.py +++ b/thallium-backend/src/app.py @@ -74,6 +74,7 @@ async def add_process_time_and_security_headers( " style-src 'unsafe-inline';" " font-src https://fonts.scalar.com;" " img-src 'self';" + " connect-src 'self';" ) response.headers["Referrer-Policy"] = "no-referrer" response.headers["Permissions-Policy"] = ( |