File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,23 @@ LogLevel warn
523523 #AddOutputFilter INCLUDES .shtml
524524</IfModule >
525525
526+ # Specific handling for webnode JS files
527+ <LocationMatch "^/assets/webnode/pkg/.*\.js$" >
528+ # Force JavaScript MIME type
529+ ForceType application/javascript
530+
531+ # Ensure these files are not rewritten
532+ RewriteEngine Off
533+
534+ # Debug headers
535+ Header set X-Content-Debug "%{CONTENT_TYPE }e"
536+ Header set X-Handler-Debug "%{HANDLER }e"
537+
538+ # Ensure proper CORS headers
539+ Header set Access-Control-Allow -Origin "*"
540+ Header set Access-Control-Allow -Methods "GET, OPTIONS"
541+ </LocationMatch >
542+
526543#
527544# The mod_mime_magic module allows the server to use various hints from the
528545# contents of the file itself to determine its type. The MIMEMagicFile
You can’t perform that action at this time.
0 commit comments