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
Describe the bug
When running netlify dev with the -t flag,POST requests to local Netlify functions fail with a "400 bad request" error. GET requests work fine.
Running netlify devwithout the -t flag makes POST requests work again.
Describe the bug
When running
netlify dev
with the-t
flag,POST
requests to local Netlify functions fail with a "400 bad request" error.GET
requests work fine.Running
netlify dev
without the-t
flag makesPOST
requests work again.To Reproduce
yarn install
yarn run netlify dev -t
GET
request to/.netlify/functions/hello
is successful, while thePOST
request to the same URL fails.yarn run netlify dev
(without the-t
flag) and observe both theGET
and thePOST
requests succeed.Configuration
netlify.toml
:Output of
envinfo
:Expected behavior
Both
POST
andGET
requests to a local Netlify function should work when runningnetlify dev -t
.Additional context
Note: if you
POST
to the functions server directly (i.e. instead ofPOST
ing to the main proxiednetlify dev
server), it works fine.The text was updated successfully, but these errors were encountered: