Okay
  Public Ticket #1882699
Unsafe Scripts
Closed

Comments

  • Cooper started the conversation

    Sites are generated with unsafe scripts that are being blocked by Google Chrome and Safari. Example Site Is there a way to prevent the scripts from being blocked?

  •  410
    Bob, replied

    Hi Cooper Le,

    which exactly?

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

  • Cooper replied

    I'm assuming you meant theme. The particular theme I'm trying to use on the site is "Tattoo", but it also happens with "Simple" and "Square". 

  •  410
    Bob, replied

    I asked for the file names that are marked as unsafe because I can not reproduce this issue.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

  •  410
    Bob, replied

    Ok, I got it on Safari only. 

    [Error] Unsafe attempt to load URL https://cooperfle.github.io/travel-blog/assets/svg/svg-map.svg from origin https://elegant-franklin-a599c6.netlify.com. Domains, protocols and ports must match. (elegant-franklin-a599c6.netlify.com, line 1)

    As you can see this is not related to the Publii theme but is connected with your server configuration.

    The SVG map file is served from  https://cooperfle.github.io/travel-blog   but your domain is elegant-franklin-a599c6.netlify.com

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

  • Cooper replied

    Thank you for the help there. I had thought that could be the problem, so I switched to manual uploads on netlify. Unfortunately, something in Publii must have kept my GitHub pages information resulting in the cors issue. 

    After starting from scratch, scripts are now loading properly in both browsers. Please go ahead and close the ticket.

  •  410
    Bob, replied

    Glad to hear that it works for you now.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!