netlify.toml (660B)
1 # Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 # 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 # We use "edge functions" feature to substitute response with pre-compressed 7 # entries whenever those are available and browser supports Brotli or Gzip 8 # content-encoding. 9 [[edge_functions]] 10 path = "/*" 11 function = "precompressed" 12 13 # Request browser "site-isolation" enabled. 14 # This allows using "SharedArrayBuffers" required for multi-threaded WASM. 15 [[headers]] 16 for = "/*" 17 [headers.values] 18 Cross-Origin-Opener-Policy = "same-origin" 19 Cross-Origin-Embedder-Policy = "require-corp"