This blog post talks about enabling Cross-Origin Resource Sharing (CORS) on PoGoAPI.net
What is CORS (Cross-Origin Resource Sharing)
Cross-Origin Resource Sharing defines whether a browser can load resources from other origins different from the one that it is currently loading.
By default browsers will only load resources from the same origin, which means you are unable to load resources from another domain even if it something else you run.
Cross-Origin Resource Sharing allows defining a header which tells a browser what origins the resource may be loaded from, if it not the current origin.
This can allow browsers to access resources from different domains or ports than the primary one it is using.
Cross-Origin Resource Sharing is now enabled on PoGoAPI.net
Someone contacted me asking if I could enable Cross-Origin Resource Sharing and after speaking with them I agreed!
This should mean that you can load the resources from a browser without having to bypass the Cross-Origin Resource Sharing header. Although we still recommend using the hashes API to ensure you only pull the data when it has changed.
As usual, if there is anything else you think should be changed, feel free to contact me!