Open
Description
Details about the bug:
- Web browser and version: Edge 108.0.1462.54
- Operating System: Windows
- Steps to reproduce this: https://editor.p5js.org/pflannery/sketches/RwHhvso2I
When trying to create a SharedArrayBuffer an error message is displayed
SharedArrayBuffer is not defined
In order to enable SharedArrayBuffer the server needs the following headers:
- Cross-Origin-Opener-Policy with "same-origin" (protects your origin from attackers)
- Cross-Origin-Embedder-Policy with "require-corp" (protects victims from your origin)
Activity
welcome commentedon Jan 2, 2023
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.
prajwalbandak commentedon Oct 21, 2023
hey @raclim , just need to add the above two properties in server.js? is it my understanding correct. please correct me if am wrong.
Raj100679 commentedon Nov 17, 2023
@lindapaiste Can you assign this issue to me
imshashanksharma commentedon Nov 24, 2023
@pflannery can u assign this issue to me
soniyadotp commentedon Dec 10, 2023
Hey @lindapaiste Can you tell me if this reference is the correct way to resolve this issue?
lindapaiste commentedon Dec 10, 2023
We need to think more about where we set those headers, which honestly I haven’t so I don’t know the answer. Do we need it on the entire server?
The sketch itself is run in an iframe. Do we need to add anything to the handler which serves the iframe? Is that included in the server.js file or is it elsewhere? The iframe is served from a different subdomain. Is that considered “same-origin” or not? Do we need to explicitly allow that subdomain as an origin?
edit: I think the file which needs changes is this one?
https://github.com/processing/p5.js-web-editor/blob/develop/server/previewServer.js
grvup commentedon Dec 27, 2023
Hey @lindapaiste may i work on this issue if still not resolved ?
lindapaiste commentedon Dec 27, 2023
TBH I haven't properly reviewed @soniyaprasad77's code. Maybe you can start by looking at that, and investigating the questions in my last comment. We may need a team effort here!
codebybishwa commentedon Jan 3, 2024
Hello, could someone please provide me with an update on the progress regarding this issue.? Thank you!
grvup commentedon Jan 4, 2024
I have implemented the suggested modifications in both codes , but the issue persists, and errors continue to occur.
If you could offer any additional solutions related to this issue, it would be helpful.
11 remaining items