Skip to content

Commit e2c2c7c

Browse files
authored
fix: add JavaScript mjs MIME type (#347)
Add JavaScript MIME types.
1 parent f3dfdc1 commit e2c2c7c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

nginx.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ server {
1313
add_header Cross-Origin-Opener-Policy same-origin;
1414
add_header Cross-Origin-Embedder-Policy require-corp;
1515
#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';";
16+
17+
types {
18+
application/javascript js mjs;
19+
}
20+
1621
location / {
1722
rewrite ^/it-tools/(.*) /$1 break;
1823
try_files $uri $uri/ /index.html;

0 commit comments

Comments
 (0)