fix(mathjax): fix mathjax script route

also change the location of mathjax resources.
and clean up docs
This commit is contained in:
zyachel 2022-11-27 22:47:33 +05:30
parent 970b224e7c
commit 055eee6650
30 changed files with 7 additions and 38 deletions

3
app.js
View file

@ -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 : [],
},