Question

Getting CORS error

Hi community,

 

We have designed a webform and sending the data from webform to creatio(trial instance) using Dataservice webservice, we have tested everything using postman and it works fine but with our js code while authentication we are getting this error.

 

Please help me how to resolve this issue.

 

Many Thanks,

Akshit.

Like 1

Like

4 comments

Hi Akshit,

 

I've got this error before and what I did to solve the issue was adding the following headers to all of my requests:

access-control-allow-origin: * ->Which allows access to the web request from all origins.

access-control-allow-methods: * ->Which allow XMLHttpRequest for all methods. 

 

Best Regards,

Pedro Pinheiro

 

Hi Pedro Pinheiro,

 

Thanks for the information.

 

What should be the value of these headers ? 

 

Regards,

Akshit

Hi Akshit,

 

each header should've as its value.

Best Regards,

Pedro Pinheiro

Akshit,

 

The * char is the value for those headers. Also something similar was mentioned previously here.

 

Best regards,

Oscar

Show all comments