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
{{ message }}
This repository has been archived by the owner on May 15, 2019. It is now read-only.
The emulator is not process the custom headers from the request. The GCloud Functions is processes additional headers successful.
Steps to reproduce
create a function with console.log(JSON.stringify(req.headers)); command
deploy the function
call the function curl -X POST -H "Content-Type:application/json" -H "x-api-key: any" http://localhost:xx/end-point path -d '{"email": "[email protected]", "message":"test message" }'
check logs. functions logs read The x-api-key is missing. Only contains: {"host":"127.0.0.1:57515","accept-encoding":"gzip, deflate","user-agent":"node-superagent/3.4.1","content-type":"application/json","content-length":"53","connection":"close"}The x-api-key is missing
<steps_to_reproduce>
Thanks!
The text was updated successfully, but these errors were encountered:
Description
The emulator is not process the custom headers from the request. The GCloud Functions is processes additional headers successful.
Steps to reproduce
console.log(JSON.stringify(req.headers));
commandcurl -X POST -H "Content-Type:application/json" -H "x-api-key: any" http://localhost:xx/end-point path -d '{"email": "[email protected]", "message":"test message" }'
functions logs read
The x-api-key is missing. Only contains:{"host":"127.0.0.1:57515","accept-encoding":"gzip, deflate","user-agent":"node-superagent/3.4.1","content-type":"application/json","content-length":"53","connection":"close"}
The x-api-key is missing<steps_to_reproduce>
Thanks!
The text was updated successfully, but these errors were encountered: