Cross-Domain Communication Blocking
SummaryCalling OFSC REST API from Plugin
I want to update a field in OFSC on a button click without closing the plugin. I am trying to call OFSC REST API from an OFSC hosted plugin and according to OFSC Documentation, I have used window.location.hostname as the url domain(To avoid cross domain communication blocking. Refer attached documentation screenshot ). Attached is the code snippet I have tried. I am getting a 404 response back from the api. Please find the code snippets I have tried. It would be great if anyone is able to point out what I'm missing.