cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to solve cross browser issue in accessing webservice in Hybris?

0 Likes
401

Hi,

We have created new addon to expose our services. But when customer trying to do the webservice call from Chrome, its returning following error:

Access to XMLHttpRequest at 'https://localhost:9002/mystoreintegration/setup' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
CROS.html:27 POST https://localhost:9002/mystoreintegration/setup net::ERR_FAILED

Service call is working fine in IE, But not working in Chrome and Mozilla.

Can you please help me on this. If sample code provided will be appreciated.

Thanks in advance.

Thanks,

Praveen

Accepted Solutions (0)

Answers (0)