Html5 on itch.io

Does anyone know what could this mean? I´m new to this kinda stuff. Thanks for any help.
Uncaught Error
at eval (eval at getAsmConst (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:1:5468), :1:233)
at _emscripten_asm_const_int (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:1:297236)
at LVy (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:27:1092694)
at Array.MVy (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:27:1093093)
at XE (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:38:386955)
at Array.UE (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:38:382865)
at JTy (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:27:996206)
at Lq (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:38:86638)
at Array.Oq (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:38:99255)
at LrZ (blob:https://v6p9d9t4.ssl.hwcdn.net/575d4abe-6acc-4f1d-8824-075ab51fd73d:66:54603)

I think the issue here is that itch.io has disabled dynamic code execution by enforcing what’s called Content Security Policy (CSP). For detailed info about that, read e.g. Content security policy

Parallel to that, Emscripten has adjusted to no longer use eval() in to avoid this issue (and also to optimize performance). That was this bug: EM_ASM() et al. should not eval() · Issue #2596 · emscripten-core/emscripten · GitHub. I believe UE 4.16 will have updated Emscripten which has this fix deployed.

Another way to work around is to get UE4 from source, and get latest Emscripten SDK, and build UE4 for HTML5 with the latest SDK manually. This is somewhat involved process though, mostly for internal developers, so might be more hassle than it’s worth.

A second way to hack to workaround could be to “staticalize” the eval() function, by looking at all the code that is passed to eval(), and having static code paths which execute that code. This requires some technical debugging work, and might be a bit hacky. I did do that successfully for one project that needed to deploy on Facebook, which had similar kind of issue. The broad strokes for doing that would be to redefined the eval() function in the main page html file, with the following:

eval = function(s) {
if (s === ‘s1’) {
s1;
} else if (s === ‘s2’) {
s2;
} else {
console.error(‘Attempted to eval "’ + s + ‘" but not yet supported!’);
}
}

and the idea is to find all the different strings s with which eval() is getting called, and create the blocks s1, s2, etc. for each of those strings. This might be a horrible thing to attempt, but technically that should work.

I’m not too familliar with itch.io, perhaps the cleanest way might be if they support disabling CSP on a page if it’s not desirable, that would be a simplest workaround for the time being.

I´ll try to wait a bit, maybe it will be simplier later. My project was for school and we made a compromise so I don´t need to get to work trough itch.io. It would be cool thou. Anyway thank you for trying to help, maybe it will help someone else :).