add: allow published notes to be shown through iframe
This commit is contained in:
parent
2ec8d86edf
commit
1dc0611298
4 changed files with 13 additions and 7 deletions
|
@ -130,7 +130,7 @@ async fn main() {
|
|||
)
|
||||
.layer(SetResponseHeaderLayer::if_not_present(
|
||||
HeaderName::from_static("content-security-policy"),
|
||||
HeaderValue::from_static("default-src 'self' blob: *.spotify.com musicbrainz.org; frame-ancestors 'self'; img-src * data:; media-src *; font-src *; style-src 'unsafe-inline' 'self' blob: *; script-src 'self' 'unsafe-inline' blob: *; object-src 'self' blob: *; upgrade-insecure-requests; connect-src * localhost; frame-src 'self' blob: data: *"),
|
||||
HeaderValue::from_static("default-src 'self' *.spotify.com musicbrainz.org; img-src * data:; media-src *; font-src *; style-src 'unsafe-inline' 'self' *; script-src 'self' 'unsafe-inline' *; object-src 'self' *; upgrade-insecure-requests; connect-src * localhost; frame-src 'self'; frame-ancestors 'self'"),
|
||||
))
|
||||
.layer(CatchPanicLayer::new());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue