Jump to content

Auth basic scene never ready in Internet Explorer


ozRocker
 Share

Recommended Posts

For some reason when I add website user authentication "scene.executeWhenReady()" never runs.

 

My code is like this:

BABYLON.SceneLoader.Load("assets/", "main.babylon", engine, function (newScene) {    console.log("Scene loaded");    newScene.executeWhenReady(function () {	console.log("execute when ready");        //do stuff    }}

It prints "Scene loaded" but never prints "execute when ready".  It works fine Safari, Chrome and Firefox though.

 

I've set up my .htaccess like this:

RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^([^/]+)/([^/]+)$ /index.php?menu=$1&submenu=$2 [QSA,L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^([^/]+) /index.php?menu=$1 [L]AuthUserFile /var/www/somedirectory/.htpasswdAuthName "Punk Office development site"AuthType Basicrequire user someguy

I'm no expert in server configurations so I might have done something wrong here, but strange that it works everywhere cept in IE.  Also there's no error message in the IE console.log

 
Link to comment
Share on other sites

ok, so what was happening is Babylon.js was trying to load images from a subdirectory and it didn't have the right credentials.  I don't know how to fix that, but I just removed password protection from that particular folder with "Require all granted" in its .htaccess file and it worked.  All browsers were having problems with this, I think the other browsers just happened to have cached data

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