Jump to content

CORS Issue with web services


Olusanya

Recommended Posts

Try adding the following lines in your prestashop .htaccess file.

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

Kindly note that setting allow origin to * is not good from the security preservative. If above solution works, you can allow the request for specific domain only (Request origin domain i.e. React App domain) by passing the domain name instead of * in the shared lines.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...