You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While calling the Wicked API endpoint /auth/local/api/search/token with an invalid scope, the response from the client is in HTML format. That is because, if an endpoint is called in a browser (also for example to get a 404), there is a pretty format, being HTML. However, usually the clients are using API REST calls and it would be more suitable to have a JSON response.
One other solution would be to allow configuration of the response type.
The text was updated successfully, but these errors were encountered:
Hello,
While calling the Wicked API endpoint
/auth/local/api/search/token
with an invalid scope, the response from the client is in HTML format. That is because, if an endpoint is called in a browser (also for example to get a 404), there is a pretty format, being HTML. However, usually the clients are using API REST calls and it would be more suitable to have a JSON response.One other solution would be to allow configuration of the response type.
The text was updated successfully, but these errors were encountered: