Jump to content

Ajax call not working


xyzale

Recommended Posts

Hello, 

brought a prestashop project on a staging server. In local environment it works correctly, but in staging, when I use edit or delete buttons it returns in console this message:

 

 

 

XMLHttpRequest cannot load http://localhost/adm...s&token=ae162c6…6&configure=megadeal&tab_module=front_office_features&module_name=megadeal. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://lullu.st' is therefore not allowed access. The response had HTTP status code 404.

 

The point is the ajax call cannot be performed from lullu.st to localhost. How can i set the url to call in order it calls lullu.st?

 

In local env. it uses the right address (lullu.lc).

Edited by xyzale (see edit history)
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...