I have a simple Angular application that I am developing to learn more about AngularJS. I am trying to consume a simple API I have designed using Laravel.
This application is working fine on Firefox. But I cannot log into the application using Chrome. It keeps giving a 403 error. It works alright in Firefox. I have also made sure that my API takes care of the OPTIONS request that Angular sends initially. What am I doing wrong?
Error in Chrome
XMLHttpRequest cannot load http://angulairapi.rohanchhabra.in/auth. Invalid HTTP status code 403
There is only one user in the application.
Username: admin@admin.com
Password: admin12345
The repositories are public:
Application: Clone link API: Clone link
Note: CORS is enabled on the back end API but since I am a beginner I might have missed something.
Aucun commentaire:
Enregistrer un commentaire