Question

2
Replies
47
Views
ParthasarathiC Member since 2017 3 posts
Pegasystems Limited
Posted: June 25, 2018
Last activity: July 6, 2018
Closed
Solved

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

Data Integration SR Parallel
Moderation Team has archived post
Share this page LinkedIn