Question
Pegasystems Limited
IN
Last activity: 6 Jul 2018 8:02 EDT
REST service failed to load on multinode server
I am calling a rest service through javascript within the same pega application
Failed to load http://DomainName:PortNumber/prweb/PRRestService/PackageName/v1/ServiceName?UserID=sampleUserID:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://DomainName' is therefore not allowed access.
Just because I have to give the port number while calling the rest service, it is considering it as a request from different origin. How do I resolve this?
Thanks & Regards,
Aayush Rathore