Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Oct 19, 2023
1 parent c16b0b2 commit 5cbb75a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/core/http/core-http-server-internal/src/cdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export class CdnConfig {
}

public getCspConfig(): CspAdditionalConfig {
const hostname = this.host;
if (!hostname) return {};
const host = this.host;
if (!host) return {};
return {
font_src: [hostname],
img_src: [hostname],
script_src: [hostname],
style_src: [hostname],
worker_src: [hostname],
connect_src: [hostname],
font_src: [host],
img_src: [host],
script_src: [host],
style_src: [host],
worker_src: [host],
connect_src: [host],
};
}

Expand Down

0 comments on commit 5cbb75a

Please sign in to comment.