Skip to content

Commit b82ddfb

Browse files
committed
fix RequestContext to use CSP value from AppConfig
1 parent f405e05 commit b82ddfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async fn render_sql(
175175
actix_web::rt::spawn(async move {
176176
let request_context = RequestContext {
177177
is_embedded: req_param.get_variables.contains_key("_sqlpage_embed"),
178-
content_security_policy: ContentSecurityPolicy::default(),
178+
content_security_policy: app_state.config.content_security_policy.clone(),
179179
};
180180
let mut conn = None;
181181
let database_entries_stream =

0 commit comments

Comments
 (0)