aardvarkxr / aardvark

A platform for AR in VR
BSD 3-Clause "New" or "Revised" License
182 stars 20 forks source link

cors parsing isn't working for menu gadget #122

Closed michaelplutovr closed 4 years ago

michaelplutovr commented 4 years ago

when hosting on local host with something like

http-server <dir> -p <port> --cors

I'm getting this message from the menu gadget

Access to XMLHttpRequest at 'http://localhost:12883/models/placeholder.glb' from origin 'http://localhost:23842' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.", source: http://localhost:23842/gadgets/aardvark_renderer/index.html

however

`$ curl -v http://localhost:12883/models/placeholder.glb

michaelplutovr commented 4 years ago

realized this might be a cached request in cef cache with a ttl of an hour from when the server didn't have cors headers. Going to retry in an hour and disable caching on the server and will update this

michaelplutovr commented 4 years ago

yep, it was cached in cef somewhere

JoeLudwig commented 4 years ago

Yeah, I'm pretty sure I've run into exactly the same thing.