# Configuration of WebXR and functionality

**URL:** <https://forum.babylonjs.com/t/configuration-of-webxr-and-functionality/12831>\
**Category:** Questions\
**Created:** [July 25, 2020, 3:47am UTC](https://forum.babylonjs.com/t/configuration-of-webxr-and-functionality/12831 "2020-07-25T03:47:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atom182](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@atom182](https://forum.babylonjs.com/u/atom182)\
**Post date:** [July 25, 2020, 3:47am UTC](https://forum.babylonjs.com/t/configuration-of-webxr-and-functionality/12831/1 "2020-07-25T03:47:27Z")

</div>

i’am new in webxr and i don’t understand much.  
i try in my cellphone the next example  
[https://www.babylonjs-playground.com/#F41V6N](https://www.babylonjs-playground.com/#F41V6N)

i donwload it, in the example works perfectly but in my own server not works.  
i don’t know why because i don’t move nothing…

the next is the code donwload

```
 var createScene = async function () {
    
        var scene = new BABYLON.Scene(engine);
        var camera = new BABYLON.FreeCamera("camera1", new BABYLON.Vector3(0, 5, -10), scene);
        camera.setTarget(BABYLON.Vector3.Zero());
        camera.attachControl(canvas, true);
        var light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(0, 1, 0), scene);
        light.intensity = 0.7;
        var sphere = BABYLON.Mesh.CreateSphere("sphere1", 16, 2, scene);
        sphere.position.y = 1;
    
        const env = scene.createDefaultEnvironment();
    
        const xr = await scene.createDefaultXRExperienceAsync({
            floorMeshes: [env.ground]
        });
    
        return scene;
    };

```

thanks and i hope some one can help me

---

<div class="post-metadata">

**Author:** ![atom182](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@atom182](https://forum.babylonjs.com/u/atom182)\
**Post date:** [July 27, 2020, 1:17am UTC](https://forum.babylonjs.com/t/configuration-of-webxr-and-functionality/12831/2 "2020-07-27T01:17:16Z")

</div>

i solved, que WebXR needs a secure server. only with https works fine.  
thanks
