Тёмный
No video :(

What is CORS? Blocked by CORS policy error explained 

Dave Gray
Подписаться 333 тыс.
Просмотров 72 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@anempiricaldesign
@anempiricaldesign Год назад
CORS errors have ruined more than a few sprints.
@khaizukooninaru9155
@khaizukooninaru9155 Год назад
Same 🤣🤣
@alimodz6253
@alimodz6253 7 месяцев назад
Huh I guess we are not alone 😂
@reromsp
@reromsp 6 месяцев назад
Totally
@neux2006yt
@neux2006yt 3 месяца назад
Absolutely 💯
@4azgin683
@4azgin683 Год назад
Just want to specify that CORS is a features provided by browser, in fact, if you made the same fetch in nodejs you are not going to receive cors blocking at alls. This is really important to understand that because debugging can be crazy without 😅
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
This is a good note! That fact is not obvious to beginners. Much more to learn about CORS beyond the short video.
@4azgin683
@4azgin683 Год назад
@@DaveGrayTeachesCode exact, but your video/short was perfect 👌 we need more people like you 🤝
@JTCF
@JTCF 5 месяцев назад
I've been a backend dev for some time now and cors has been one of the big issues during frontend integration...
@khaizukooninaru9155
@khaizukooninaru9155 Год назад
Whenever I hear cors it gives me nightmare 🤣🤣🤣 it has cause issue for me many times
@monq02
@monq02 Год назад
cors doesn't prevent request from the serverside though so you'll have to think of ways to black list/ white list a request for that if you want to prevent them from accessing your rest api
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Correct.
@Anas_Alaqeel
@Anas_Alaqeel 9 месяцев назад
Whats the point of CORS if you can bypass it using postman?
@siva_geddada
@siva_geddada Год назад
Awesome why don't you make full length video on this,
@tresvecesno7071
@tresvecesno7071 4 месяца назад
Thanks!
@DTUSEM
@DTUSEM Год назад
Can form by pass the cors ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
I believe you mean to ask if form data will trigger a CORS preflight check. No, it does not trigger that like JSON does. As mentioned in the video, many more details are on MDN here: developer.mozilla.org/en-US/docs/Web/HTTP/CORS
@jsnatureclicks3185
@jsnatureclicks3185 Год назад
For every change we need ng build and corse it? Do we need to clear the cache and run to see changes when we use cors
@amansarma417
@amansarma417 Год назад
How to handle cors when you are using those backend apis in your mobile apps like react native or native apps.
@me_tanmay
@me_tanmay Год назад
Need video for setting up CORS for client/server
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
CORS is set up on the server. You can see how I do that with Node.js right here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-y18ubz7gOsQ.html
@me_tanmay
@me_tanmay Год назад
Since you're here, love your content and videos, very clear concise, truly great teacher and mentor! ♥️
@shakeshev
@shakeshev 5 месяцев назад
Hello Dave. Thank you very much! Kindly explain if I understand correctly. When we refresh the page the token gets cleared. For that reason we implement baseQueryWithReAuth. But if we keep checkbox “trust this device” unchecked. Then there is no refresh endpoint which means on page reload the page will not be allowed to see it due to empty access token and no refresh endpoint. Is it correct? If yes then how to implement a feature to keep page accessible on page reload but disallow page view if the page/browser is closed. Is it secure to use sessionStorage for accessToken in this case? Or is there any better solution? Thank you very much in advance.
@birapci
@birapci 9 месяцев назад
I can set my requests’ Cross-Origin manually. So, what is the point of using cors?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 9 месяцев назад
Blocking unwanted cross-origin requests. Reference: developer.mozilla.org/en-US/docs/Web/HTTP/CORS
@Admin9o5
@Admin9o5 4 месяца назад
❤❤
@anoniem012
@anoniem012 Год назад
How do you make this video
@ducijokic5851
@ducijokic5851 Год назад
nice.
@constantine9074
@constantine9074 Год назад
Finalllyyyy... i know now.. 😂
@ggff2269
@ggff2269 Год назад
To be honest in django Cors headers error occurs when connecting frontend with backened and is really has an only 3 step solution. Dont know about nodejs😅😅
@princeadigwe3764
@princeadigwe3764 10 месяцев назад
Can you please tell me this 3 step solution. I'm having cors issues
@EugeneTit1
@EugeneTit1 7 месяцев назад
No cors is not working!
@bigsmoke4568
@bigsmoke4568 Год назад
The only "Cors" I'm familiar with is Coors light
@4azgin683
@4azgin683 Год назад
And you should not write "coors" in your browser without other contexte like "browser" ( i am french, can be different of course)
@4azgin683
@4azgin683 Год назад
🤣🤣🤣
@bigsmoke4568
@bigsmoke4568 Год назад
@@4azgin683 coors light is the brand name of an American beer
@stefnirk
@stefnirk Год назад
The best way to never have a CORS error is to never send requests to another URL from the browser. It's good practice to validate requests by letting them pass through your servers is good practice anyway.
Далее
Learn CORS In 6 Minutes
6:06
Просмотров 718 тыс.
I Built a WATERPARK In My House!
26:28
Просмотров 15 млн
React Proxy | Easiest Fix to CORS Errors
15:52
Просмотров 86 тыс.
CORS in 100 Seconds
2:31
Просмотров 556 тыс.
How To Solve CORS Error? Learn CORS in 6 mins
6:32
Просмотров 5 тыс.
Your Developer Portfolio NEEDS a Project like THIS
17:37
Add a Honeypot to Your Forms 🐝
0:45
Просмотров 721 тыс.