Advertisement
metalx1000

Godot 4 HTML Apache error fix

Aug 11th, 2023
1,564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. #If when exporting to html in Godot 4
  2. #you receive this error in your web browser
  3. #and you use apache web server
  4. --------------------------------------------------------------------------------
  5. The following features required to run Godot projects on the Web are missing:
  6. Cross Origin Isolation - Check web server configuration (send correct headers)
  7. SharedArrayBuffer - Check web server configuration (send correct headers)
  8. --------------------------------------------------------------------------------
  9.  
  10. #add this to your .htaccess file
  11. <IfModule mod_headers.c>
  12. Header set Cross-Origin-Embedder-Policy: require-corp
  13. Header set Cross-Origin-Opener-Policy: same-origin
  14. </IfModule>
  15.  
  16. #and run these commands
  17. sudo apache2ctl -M
  18. sudo a2enmod headers
  19. sudo systemctl restart apache2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement