I am using Reactjs for frontend and Laravel for backend as API, Im using Sanctum for Auth. during the development which run in localhost:3000, logging in is fine. but after building the app and putting it in localhost (apache), when I log-in it gives me 419 Error. But in my dev folder/app it still works fine.
I dont know where I've got it wrong. also im using react-router-dom v6.