mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-07 06:57:37 +03:00
fix(mathjax): fix mathjax script route
also change the location of mathjax resources. and clean up docs
This commit is contained in:
parent
970b224e7c
commit
055eee6650
30 changed files with 7 additions and 38 deletions
3
app.js
3
app.js
|
@ -20,10 +20,9 @@ const app = express();
|
|||
// 1. IMPORTANT MIDDLWARES
|
||||
app.use(compression()); // compressing responses
|
||||
app.use(
|
||||
helmet({
|
||||
helmet({
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
'script-src': ["'self'"],
|
||||
'block-all-mixed-content': null, // deprecated.
|
||||
'upgrade-insecure-requests': process.env.NO_UPGRADE ? null : [],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue