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
In the documentation it is advised to use body with a POST request to pass data. Though in my Symfony API the user and password property were both null despite the payload containing them both.
After looking through the code i saw the params option which worked.
Any plans on explaining this in the docs? I did not find the params option in the README
code in question:
constdata=await$fetch("/login",{method: "POST",params: {usr: "user",pwd: "password"},// body did not workbaseURL: config.public.baseURL,})
URLs
No response
Additional information
Would you be willing to help?
The text was updated successfully, but these errors were encountered:
Describe the change
In the documentation it is advised to use
body
with a POST request to pass data. Though in my Symfony API the user and password property were both null despite the payload containing them both.After looking through the code i saw the
params
option which worked.Any plans on explaining this in the docs? I did not find the
params
option in the READMEcode in question:
URLs
No response
Additional information
The text was updated successfully, but these errors were encountered: