For people who are developing you website, please be aware what CORS is when you are writing your code for your API and make sure it is available.

CORS stands for Cross-Origin Resource Sharing

These are some violations which can create errors and block access to an API:

  • Different Domain Names
  • Different Sub Domain Names [ & are different]
  • Different Port Numbers [ & are different]
  • Different Protocols [ & are different]

If any of the above cases are true, access by any script to these resources will fail. You might get an error like this in your console developers tools:

No 'Access-Control-Allow-Origin' header is present on the requested resource

Hope that helps.