I am trying to write a html page that includes stockfish.js. (My goal is to create a site where yoy can play certain positions against stockfish.)
The problem is that stockfish.js uses SharedArrayBuffer, so when i load the html Firefox-console outputs "ReferenceError: SharedArrayBuffer is not defined".
On the stockfishjs git-page it says that to avoid this problem I need to add "these HTTP headers on the top level response:
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
And the following header on the included files:
Cross-Origin-Embedder-Policy: require-corp"
But how do I do that? (I am new to web-developing, and unfamiliar with php. I used py -m server.http to "imitate" a server while i work.)