kwhitley / itty-router

A little router.
MIT License
1.75k stars 78 forks source link

Can't get Authorization Bearer Token from request headers #82

Closed RedSpid3r closed 2 years ago

RedSpid3r commented 2 years ago

I'm trying to build my first app (CF Worker) with itty-router and seem to be having issues with the headers.

I'm trying to use Authorization Bearer Token Header but when I try to get that from the headers I get undefined.

My previous projects used ExpressJS which returns headers as an object, is there some way I can do the same with itty?

Thanks.

RedSpid3r commented 2 years ago

Resolved :)

kwhitley commented 2 years ago

My favorite sort of tickets... the self-closing kind! :D