Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Cross-Domain Communication Blocking — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Cross-Domain Communication Blocking

Received Response
20
Views
1
Comments
edited Jul 4, 2020 7:45PM in Field Service 1 comment

Summary

Calling OFSC REST API from Plugin

Content

Hi All,

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. 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!