Skip to content

Commit

Permalink
Merge pull request #24 from lembdev/patch-1
Browse files Browse the repository at this point in the history
fix: CSP problem in Safari
  • Loading branch information
Alfonso Reyes authored Dec 20, 2020
2 parents b09c7b2 + 06f5f32 commit dc26ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redoc-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class RedocModule {
// Content-Security-Policy: worker-src 'self' blob:
res.setHeader(
'Content-Security-Policy',
"default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; worker-src * 'unsafe-inline' 'unsafe-eval' blob:; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';"
"default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; child-src * 'unsafe-inline' 'unsafe-eval' blob:; worker-src * 'unsafe-inline' 'unsafe-eval' blob:; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';"
);
// whoosh
res.send(redocHTML);
Expand Down

0 comments on commit dc26ec5

Please sign in to comment.