|
|
@ -102,7 +102,7 @@ router.get('/', async (ctx, next) => { |
|
|
const markdownContent = readMarkdown(contentPlain) |
|
|
const markdownContent = readMarkdown(contentPlain) |
|
|
if (markdownContent) { |
|
|
if (markdownContent) { |
|
|
ctx.body = renderSandbox(markdownContent) |
|
|
ctx.body = renderSandbox(markdownContent) |
|
|
ctx.set('Content-Security-Policy', "default-src 'self'") |
|
|
|
|
|
|
|
|
ctx.set('Content-Security-Policy', "default-src 'self' 'unsafe-inline'") |
|
|
ctx.set('Content-Type', 'text/html') |
|
|
ctx.set('Content-Type', 'text/html') |
|
|
} else { |
|
|
} else { |
|
|
ctx.body = contentPlain |
|
|
ctx.body = contentPlain |
|
|
|