filmov
tv
CORS: Solved

Показать описание
Hi Everyone,
CORS is a topic that has been extremely mysterious and frustrating to debug to me for many years, and it’s hard to even google and find a really thorough explanation of it, and one that helps me with my debugging. These are the topics I love to research-- stuff that's hard but also hard to get good resources on.
My goal here is to give a complete mental model, a thorough understanding of the ‘why’s’ of CORS, and the tactics necessary to drastically cut your debugging time, or hopefully never having CORS errors again.
The code samples in my live example are borrowed from Ilijah’s awesome article on the topic here. I also borrowed some details that I thought were really well explained. Full credit and it’s a great article, I really appreciate how well this is written and how strategically CORS gets explained.
Sample code here if you want to try it out yourself:
CORS is a topic that has been extremely mysterious and frustrating to debug to me for many years, and it’s hard to even google and find a really thorough explanation of it, and one that helps me with my debugging. These are the topics I love to research-- stuff that's hard but also hard to get good resources on.
My goal here is to give a complete mental model, a thorough understanding of the ‘why’s’ of CORS, and the tactics necessary to drastically cut your debugging time, or hopefully never having CORS errors again.
The code samples in my live example are borrowed from Ilijah’s awesome article on the topic here. I also borrowed some details that I thought were really well explained. Full credit and it’s a great article, I really appreciate how well this is written and how strategically CORS gets explained.
Sample code here if you want to try it out yourself: