AndresLP

FM Cloud: accessing FM Data API from web browser using JavaScript

Discussion created by AndresLP on Oct 21, 2018
Latest reply on Oct 25, 2018 by bruderdog

I’m testing accessing the FM Data API from a web browser using JavaScript (as an alternative to PHP CWP). I have my own server and in order to be able to access I had to configure CORS in the web server.

 

Since PHP is not available for FMCloud, I wonder if the FM Data API is configured so JavaScript can be used for CWP (in other words, CORS is not an issue with FMCloud).

 

I’m currently not using FMCloud, has someone tested it?

 

P.S.: big thanks to stevewinter for this great blog post that allowed me to fix the CORS issue:

 

https://msdev.co.uk/fms-cross-origin/

 

Big thanks also for his great presentation at DevCon and sample files on GitHub.

Outcomes