fix(docker): disallow embedding SwaggerUI served from docker by default (#9520)

This commit is contained in:
Vladimír Gorej
2024-01-26 15:57:18 +01:00
committed by GitHub
parent 8a53e7c6ec
commit f9ecb01aa8
4 changed files with 20 additions and 2 deletions

5
docker/embedding.conf Normal file
View File

@@ -0,0 +1,5 @@
#
# Prevent displaying inside an iframe
#
add_header 'X-Frame-Options' 'DENY' always;
add_header 'Content-Security-Policy' "frame-ancestors 'none'" always;