Jump to content

Playground Security Blocks <script> Appending


JohnK
 Share

Recommended Posts

From today I am getting a  Blocked loading mixed active content message whenever the page uses an external url and

var s = document.createElement("script");
s.src = url;
document.head.appendChild(s);

This affects a number of PGs including, among others, Jerome's dynamic terrain PGs. This seems to be because the playground is now delivering all pages using https. Is this a recent change?

When this happens the PG can be unblocked using the lock icon next to the PG address. This is annoying.

If security demands https  then in future all demonstrations of new functions will require the direct placement of the new functions as code within the PG editor,

Can this decision to deliver all PG pages by https be reversed or are security concerns such that delivery for all PGs must now use https?

 

Link to comment
Share on other sites

Hello John,

if you are in https mode, the best option is to load your urls from a https source as well: https://www.babylonjs-playground.com/#12CWQQ#52

Script appending is not blocked but https requires to load data from https only.

 

We moved to https because the web is clearly moving to https as a whole. Google gives you better SEO if you are on https for instance

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...