How to fix CORS errors for good

preview_player
Показать описание
BLOCKED BY CORS

Did reading that give you shivers? You're not alone.

Cross origin resource sharing - CORS - has been a pain for developers for a long time. However, it is often made out to be more complex than needed, and solutions unnecessarily pedantic, when in reality you only need to remember a few things. Like, two things.

In this video, we'll provide an overview of what CORS is all about and how to fix it once and for all! Never again will you blocked by CORS! Assuming you own the server.

Remember these two things:
1. Before CORS, you couldn't do ANY cross-origin fetching from the client
2. It's easier than it seems!

Let's dive in!

Рекомендации по теме
Комментарии
Автор

Thanks for that. I came across your post on webdev on Reddit. You were right, it was more entertaining :)

AlexPlayerDigital