Skip to content

Commit e32e538

Browse files
committed
updated Readme
1 parent 7ef11fd commit e32e538

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ Please follow these simple steps:
107107
embedded
108108
arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;"
109109
>
110-
<!-- we use cors proxy to avoid cross-origin problems -->
110+
<!-- we use cors proxy to avoid cross-origin problems ATTENTION! you need to set up your server -->
111111
<a-nft
112112
type="nft"
113-
url="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/trex-image/trex"
113+
url="your-server/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/trex-image/trex"
114114
smooth="true"
115115
smoothCount="10"
116116
smoothTolerance=".01"
117117
smoothThreshold="5"
118118
>
119119
<a-entity
120-
gltf-model="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
120+
gltf-model="your-server/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
121121
scale="5 5 5"
122122
position="50 150 0"
123123
>
@@ -185,10 +185,11 @@ Please follow this simple steps:
185185
<body style="margin : 0px; overflow: hidden;">
186186
<a-scene embedded arjs>
187187
<a-marker preset="hiro">
188+
<!-- we use cors proxy to avoid cross-origin problems ATTENTION! you need to set up your server -->
188189
<a-entity
189190
position="0 -1 0"
190191
scale="0.05 0.05 0.05"
191-
gltf-model="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
192+
gltf-model="your-server//https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
192193
></a-entity>
193194
</a-marker>
194195
<a-entity camera></a-entity>
@@ -197,6 +198,11 @@ Please follow this simple steps:
197198
</html>
198199
```
199200

201+
Important! Be aware that if you are referring to external resources, in any app, especially those using NFT, you will encounter CORS problems if those resources are not in the same server of the code. If you can’t see the tracking, please open your Browser Dev Tools and check if you have CORS errors in the console. If so, you have to fix those errors in order to see your content. The correct fix is to place your resources on the same server of your code.
202+
203+
If you cannot do that, you can host a proxy anywhere server to solve that (https://github.com/Rob--W/cors-anywhere).
204+
Please note that several hosting services have policies that does not permit to use such server. Always check hosting services policies before using them to avoid account suspensions
205+
200206
Learn more on the [AR.js Official Documentation](https://ar-js-org.github.io/AR.js-Docs/).
201207

202208
## Troubleshooting, feature requests, community
@@ -238,4 +244,3 @@ For legal details, be sure to check [jsartoolkit5 license](https://github.com/ar
238244
and [AR.js license](https://github.com/AR-js-org/AR.js/blob/master/LICENSE).
239245

240246
Full Changelog: [AR.js changelog](https://github.com/AR-js-org/AR.js/blob/master/CHANGELOG.md)
241-

0 commit comments

Comments
 (0)