• Resolved aardi

    (@aardi)


    Hey!
    I’m having a problem with the implementation of three.js for 3D Models in my website. Your (amazing btw.) plugin is blocking the renderer in some way. Here is the error message:

    
    Refused to load the image 'blob:https://example.com/74714556-4d9b-47ba-a556-854fea22fd6c' because it violates the following Content Security Policy directive: "img-src 'self' data:

    The URL is in the images section of “Always Allowed” and the renderer works if I deactivate the plugin. I don’t see a way to change or expand the Content Security Policy to include ‘blob:’. Is there a way to circumvent this problem?

    Thanks in advance,
    Dimi

    • This topic was modified 4 years ago by Yui.
    • This topic was modified 4 years ago by Yui. Reason: fixed example url
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aardi

    (@aardi)

    Ok, I was able to fix this by adding ‘blob:’ to ‘inc/set-cacsp.php’ line 76:

    $contentSecurityPolicyImg = "img-src 'self' <strong>blob:</strong> data: " ...

    It would be nice if you could include this as an option/checkbox in the backend in a future release!

    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    Good idea! I’ll make a note of it and add that to a future (soon) release.

    Thread Starter aardi

    (@aardi)

    Perfect, thanks for the consideration! ??

    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    Blob is added in the latest release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Refused to load the image ‘blob: ‘’ is closed to new replies.