jeudi 17 mai 2018

Angular http forbidden error

I'm working with a Laravel 5.4 project. The projectis about an ecommerce for buy clothes. In the project I have a product editor, not made from me, that is made in AngularJs. This editor works correctly, I can use it with all of his functions correctly when I'm running the editor on my local machine. The problem cames when I try to use it on production hosting server. When on the editor I click add to cart of some customized product, the editor call a controller that save de canvas in a png image. For do this, the editor make an ajax for save it, with $http. The problem is that allways return me a forbidden error, as you can see in the images. But, ONLY I have this problem on the production hosting server, on local works correctly. Some idea?

The error on the consoleThe angular ajax from the product editor

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire