Only secure origins Webcam

Hey everyone ! I try to use ar.js to make a app AR with Ionic 3. But i have this error : Webcam error. Only secure origins are allowed (see: https://goo.gl/Y0ZkNV ).

index.html

<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/rondagdag/AR.js/e0bee070d843f3c2eed84fbda4dbea24bbf941c8/aframe/build/aframe-ar.js"></script>
  

home.html

<a-scene embedded arjs='debugUIEnabled: false;' vr-mode-ui="enabled: false">
  
    <a-assets>
      <a-asset-item id="ghost-model" src="https://ionic-dc.github.io/demos/ar-assets/models/ghost/scene.gltf"></a-asset-item>
      <a-asset-item id="cat-model" src="https://ionic-dc.github.io/demos/ar-assets/models/cat/scene.gltf"></a-asset-item>
    </a-assets>
  
    <a-marker type="pattern" url="https://ionic-dc.github.io/demos/ar-assets/marker-patterns/ionic-logo-marker.patt">
      <a-gltf-model src="#ghost-model" id="ghost" position="0 1 0" scale=".005 .005 .005" rotation="0 0 0"></a-gltf-model>
    </a-marker>
  
    <a-marker type="pattern" url="https://ionic-dc.github.io/demos/ar-assets/marker-patterns/github-marker.patt">
      <a-gltf-model src="#cat-model" id="cat" scale=".075 .075 .075" rotation="0 0 0"></a-gltf-model>
    </a-marker>
  
    <a-camera-static></a-camera-static>
  
  </a-scene>

Anybody have a explanation about this error ?

Thanks you for your awnsers.

Hey,

It looks like a CORS issue.
https://blog.ionicframework.com/handling-cors-issues-in-ionic/

Have fun with ionic,

Hey zouheir,
Have you solved the issue?

Cheers,