Semi URGENT - Dfinity/ anyone deployed a sizeable Unity webgl build to main ? - permissions issues

anyone know how to resolve ? tried raw on the link but didnt help…

Unity canister deployed fine and I think js loader and index all pointed and have necessary in them… BUT… get this… looks like simple permissions ?

  1. The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.

To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.

If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive.

:warning: Allowing string evaluation comes at the risk of inline script injection.

  1. Affected Resources

  2. 1 directive

1. |Source location|Directive|Status|

| — | — | — |
||script-src|blocked|

1 Like

no joy adding tag…

<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-eval'">

still got …

1 Like

Hi John,

I found discussion by others devs in the ICP Developer community Discord server about a similar issue. You might find these conversations helpful. Here are the links:

Thanks brother :slight_smile:

I solved the permissions with a HTML directive …

now deploy seems to load my index html as the unity javascript loader and I get the usual ‘<’ unknown symbol deal



1 Like

resolved the < tage issue… yes obviously a 404 not found due to bad url for the js loader location… Resolved by me