Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
just to avoid runtime errors if something went wrong (e.g. Authorization being undefined) as well as for maintainability as you can know what it does by just reading at this while in the array hardcoded position implementation you can be wondering "what the heck does Authorization have?".
Also take a look at CORS and specially to the DB Salt concept so you get better security on this.
Versatile software developer skilled in JavaScript, TypeScript, MongoDB, PostgreSQL, MySQL, Render, Heroku, and AWS. Passionate about innovative solutions and team success.
Top comments (2)
Hi @fredabod , nice introduction to this topic.
Pointing out improvement points:
Assuming that the headers look like that:
I'd change
for
just to avoid runtime errors if something went wrong (e.g. Authorization being undefined) as well as for maintainability as you can know what it does by just reading at this while in the array hardcoded position implementation you can be wondering "what the heck does Authorization have?".
Also take a look at CORS and specially to the DB Salt concept so you get better security on this.
Hope it helps somehow, best regards 😁
This was really helpful. Thank you @joelbonetr