View Full Version : Cross-domain access to projectgorgon.com

04-01-2018, 02:45 PM
If you don't known already, I wrote a parsing app at https://github.com/dlebansais/PgJsonParse/releases to make searching through P:G Json files easier. However, this app is for Windows only.

For some time now I've been working on a web site version. It's a lot of effort, and there are many hills to climb with the possibility that the next one is the everest, forcing my project to stop dead.

My last issue is about reading http://client.projectgorgon.com and http://cdn.projectgorgon.com from another web site, i.e. making cross-domain requests. I'm far from being an expert, but it seems projectgorgon.com does not include in its responses the "Access-Control-Allow-Origin" header (and perhaps others) that would allow what I want to do. It looks like access is restricted to browsers.

Hopefully this is something that can be resolved on my end. If any expert in these matters read this, if CORS has no secret for you, I'd love to be enlighten. :)

05-04-2018, 04:04 AM
Not sure if I would be of much help, but out of curiosity what are you using for this solution?

I saw a couple of suggestions that recommended using a proxy script on your site to simply read/output the remote file and then perform the json queries against the proxy.

Not sure if that applies to your solution or even in general.

05-04-2018, 05:45 AM
A proxy script is what I ended up doing.