A nerd in books, tea, games and software.
I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.
Markdown supported · ⌘↵ to post
Great explained. Thank you.
But, in this sentence "The whitelisted website is usually passed in the Access-Control-Allow-Origin request header, which will tell the server that it is okay to send and share its data to this website."
I believe you meant to say "Access-Control-Allow-Origin response header" instead of "Access-Control-Allow-Origin request header."
So well explained that it is difficult not to understand. Congratulations! Continue with articles like that.
so we all face that cors error at some point in our learning journey. Thanks for this nice explanation.
Why can you await fetch whithout async first, which requires the use of immediately Invoked Function Expression? for example:
(async () => {
const response = await fetch('url&)
})()
Victoria Lo
Victoria Lo
Eduardo Celedonio
Thanks for sharing! Your explanation makes everything really easy to follow. I just noticed that in the "First, an experiment" section, you might be missing the closing part for this line: const response = await fetch("");