UniFormal / TGView3D

A 3D Theory Graph Viewer for MMT.
GNU General Public License v3.0
6 stars 4 forks source link

External URIs #34

Open richardmarcus opened 4 years ago

richardmarcus commented 4 years ago
kohlhase commented 4 years ago

I think this is something related to https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9 We could fix it at the level of MathHub but that would not help TGView itself.

richardmarcus commented 4 years ago

the second solution with https://cors-anywhere.herokuapp.com/ as proxy seems to work fine, but not sure if we want to rely on this in the future

kohlhase commented 4 years ago

Well maybe this is something for standalone TGView. In MathHub we already have a proxy we could (better) use (maybe extend for this). This is closer to solution 3. @richardmarcus why don't you implement solution2 for tgview3D standalone and @tkw1536 can think about the MathHub integration.

richardmarcus commented 4 years ago

Standalone TGView is not affected because CORS only affects browser-server communication. Until we have something better, I integrated the mentioned proxy. https://tgview3d.mathhub.info/?kwarc.info/teaching/IWGS/graph.json now automatically loads the IWGS graph