Cross Origin Opener Policy problem: how to get SharedArrayBuffer working in Open edX Custom JS Display and Grading?

I’m facing an issue regarding cross-origin policy: some of my problems (Custom JS Display and Grading) require SharedArrayBuffer to work properly (e.g. Simple Python IDE “STEP” button functionality). To make it work, the following headers were added:

Cross-Origin-Opener-Policy: same-origin 
Cross-Origin-Embedder-Policy: require-corp

But now none of my demos is loaded, since the course’s page is apps.openedu.kau.org.ua and assets are stored at openedu.kau.org.ua that are considered as different origins. I will appreciate any ideas/thoughts of what can be done to mitigate the problem.