Skip to content

Commit

Permalink
feat(web): add .htaccess as asset
Browse files Browse the repository at this point in the history
  • Loading branch information
berdal84 committed Jan 16, 2025
1 parent fb2ed0c commit a691310
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://emscripten.org/docs/compiling/WebAssembly.html#web-server-setup

Header add Access-Control-Allow-Origin "*"
Header add Cross-Origin-Opener-Policy "same-origin"
Header add Cross-Origin-Embedder-Policy "require-corp"
Header add Cross-Origin-Resource-Policy "cross-origin"

Options +MultiViews
RemoveType .gz
AddEncoding x-gzip .gz
AddType application/octet-stream .data
AddType application/wasm .wasm

6 changes: 6 additions & 0 deletions rake/ndbl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"assets/images/nodable-logo-xs.png",
]

if PLATFORM_WEB
ndbl_app.assets = FileList[
".htaccess"
]
end

ndbl_app.link_library |= [
$tools_gui,
$tools_core,
Expand Down

0 comments on commit a691310

Please sign in to comment.