From 93bed09c780904e4da9c223e890cb6e78483bd36 Mon Sep 17 00:00:00 2001 From: Anastas Mironov <37507557+ast21@users.noreply.github.com> Date: Sun, 12 Apr 2026 13:48:42 +0500 Subject: [PATCH] fix: add JavaScript mjs MIME type (#347) Add JavaScript MIME types. --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index ccc7a4c0..cfe1170a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -13,6 +13,11 @@ server { add_header Cross-Origin-Opener-Policy same-origin; add_header Cross-Origin-Embedder-Policy require-corp; #add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' http: https: blob:; style-src 'self' 'unsafe-inline' https: http:; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self' https: http:; object-src 'none'; base-uri 'self'; form-action 'self';"; + + types { + application/javascript js mjs; + } + location / { rewrite ^/it-tools/(.*) /$1 break; try_files $uri $uri/ /index.html;