Hi.
I’m creating a dashboard to have a better view of my datas.
The problem is that when I’m trying to call the api from this external website I’m receiving an authorization error.
What should I do in this case?
hi @clarkej
I’m still having some errors trying to get the token, could you help me with this?
When I try to access this URL : Frappe Cloud
it’s returning me an error with this object :
{
error: “unsupported_grant_type”
}
Do you know what should I do? @ManasSolanki could you help me with this, please?
The first attempt you made was post request, without having any cookie/auth header. You’ve to be signed in with the user to access resource.
Instead of using javascript to make request from client side, it is recommended to make request from server side (php/python/rails/java/etc). It will avoid CORS and keep credentials safe.
The second method is modern approach by using OAuth 2.0:
read “How to setup OAuth?” and “Using OAuth” from following link.