k-l-lambda commited on
Commit
7593c48
·
1 Parent(s): a5530bb

Remove custom_headers to allow iframe embedding

Browse files

- Custom COOP/COEP headers were blocking iframe embedding
- Service worker now handles headers client-side conditionally
- Direct access: SharedArrayBuffer enabled (AI multi-threaded)
- Iframe embed: No headers, AI uses single-threaded mode

Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -7,10 +7,10 @@ sdk: docker
7
  pinned: false
8
  license: apache-2.0
9
  short_description: A web game of 3D Go (围棋)
10
- custom_headers:
11
- cross-origin-embedder-policy: require-corp
12
- cross-origin-opener-policy: same-origin
13
- cross-origin-resource-policy: cross-origin
14
  ---
15
 
16
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  pinned: false
8
  license: apache-2.0
9
  short_description: A web game of 3D Go (围棋)
10
+ # Note: custom_headers removed to allow iframe embedding on huggingface.co/spaces
11
+ # The coi-serviceworker.js handles COOP/COEP headers client-side:
12
+ # - Direct access: Service worker adds headers → SharedArrayBuffer enabled (AI multi-threaded)
13
+ # - Iframe embed: Service worker not registered → No headers → AI single-threaded mode
14
  ---
15
 
16
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference