Jump to content

Best way to use playground with external ressources


Sybaris
 Share

Recommended Posts

Hello

First, thanks for the great job for Babylon.js.
Powerfull engine, very well documented, with many examples...
Playground, is also a very great environement.

I have exported .babylon file using 3ds max, all is ok.
On the sandbox (https://sandbox.babylonjs.com/), I can load my file. It's ok.

Now I would like to use Playground with my file.
I try to load local file from my computer, but I understand that it cannot.
Then I upload my file on a web server, and I use this url (http), and I have an error, because it's not https.
So I setup my web server to use https, and now I have the following error :

"Access to XMLHttpRequest at 'https://xxx/myFile.babylon' from origin 'https://www.babylonjs-playground.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

My goal is to use the playground with my file. What is the easiest way please ?


Thanks for advance.
Regards,
Sybaris

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...