Parcourir la source

A-Frame plugin: add the crossOrigin attribute to reference images

customisations
alemart il y a 6 mois
Parent
révision
025e18a29a
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js Voir le fichier

@@ -968,6 +968,7 @@ AFRAME.registerComponent('ar-reference-image', ARComponent({
968 968
             throw new Error('Unspecified src attribute of ar-reference-image');
969 969
 
970 970
         const img = new Image();
971
+        img.crossOrigin = 'anonymous';
971 972
         img.src = this.data.src;
972 973
 
973 974
         return {

Chargement…
Annuler
Enregistrer