Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Dec 19, 2024
2 parents ad65196 + 081a1a4 commit 2fac540
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/morphodict/site/securemiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

csp = (
ContentSecurityPolicy()
.default_src("'self'")
.script_src("'self'", "cdn.example.com")
.default_src("'self'", "speech-db.altlab.app")
.script_src("'self'")
.style_src("'self'", "fonts.googleapis.com", "'unsafe-inline'")
.img_src("'self'")
.connect_src("'self'", "speech-db.altlab.app")
.font_src("'self'", "fonts.gstatic.com", "fonts.googleapis.com")
.media_src("'self'", "http://speech-db.altlab.app", "https://speech-db.altlab.app")
)

secure_headers = Secure(csp=csp)
Expand Down

0 comments on commit 2fac540

Please sign in to comment.