Skip to content

Commit 37e95e5

Browse files
committed
Httpdconf
1 parent f5eed20 commit 37e95e5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

frontend/httpd.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)