Setting up oauth API
my dashboard is hosted on https://cardinal.oreotm.xyz
and my backend is hosted on a vps on [ipaddress]
Backend Setup:
Frontend Code:
When i host the frontend on my local machine the login data is returned, but when i host the site on the domain it returns 'Bad request'. How do i properly set the api up?
and my backend is hosted on a vps on [ipaddress]
Backend Setup:
Frontend Code:
When i host the frontend on my local machine the login data is returned, but when i host the site on the domain it returns 'Bad request'. How do i properly set the api up?
Solution
something like
could it be because im mixing http and https while using
http://207.xxx.xxx.xxx:4000could it be because im mixing http and https while using
credentials: 'include'