What is CORS? | Fixing CORS errors in ASP.NET Core

  Рет қаралды 7,137

Julio Casal

Julio Casal

Күн бұрын

💻Get the source code: go.dotnetacade...
Has it happened to you that you have your modern frontend ready to talk to your ASP.NET Core backend but on the first request all you get is a CORS policy error?
Luckily, dealing with CORS is a very straightforward process, so here's how to configure CORS in an ASP.NET Core application.
Topics covered:
00:24 What is a cross-origin request?
02:08 What is CORS?
03:33 Invoking a Web API server from a Blazor WebAssembly client
12:42 Configuring CORS in ASP.NET Core
🔥Become a Senior C# Backend Engineer: juliocasal.com...
🗺️Get My Free .NET Backend Developer Roadmap: juliocasal.com...
Join me on Patreon: / juliocasal
Follow me on LinkedIn: / juliocasal
Follow me on X: x.com/julioc
#dotnet #aspnetcore #aspnet

Пікірлер: 27
@RouteDeTours
@RouteDeTours 11 ай бұрын
Finally a video that not only makes sense but actually works. Thank you so much. Por fin un vídeo que no sólo tiene sentido sino que realmente funciona. Muchas gracias.
@juliocasal
@juliocasal 11 ай бұрын
De nada!
@oswaldumeh
@oswaldumeh 2 жыл бұрын
Amazing video! Never has CORS been explained so clearly. Wonderful job, senor!
@juliocasal
@juliocasal 2 жыл бұрын
Glad it was helpful!
@hernan.cortes
@hernan.cortes 2 жыл бұрын
A very common issue. Gracias por el excelente contenido, Julio!
@juliocasal
@juliocasal 2 жыл бұрын
De nada!
@kuljotbakshi967
@kuljotbakshi967 7 ай бұрын
Amazing!!!!! solved in seconds!!!! CORS has got to be the most irritating thing to encounter as a developer!
@juliocasal
@juliocasal 7 ай бұрын
No kidding!
@HomeSlize
@HomeSlize 2 жыл бұрын
Good video. Thanks for the great content, Julio.
@juliocasal
@juliocasal 2 жыл бұрын
My pleasure!
@shaznishiraz
@shaznishiraz 2 жыл бұрын
Amazing content! as always
@juliocasal
@juliocasal 2 жыл бұрын
Glad you liked it!
@vietnguyen2521
@vietnguyen2521 3 ай бұрын
cool!!! thanh you so much
@juliocasal
@juliocasal 3 ай бұрын
Welcome!
@AnGeLuz747
@AnGeLuz747 Жыл бұрын
Amazing explanation ... I have cors problems but with specials verbs (put, delete and options), I'm using windows authentication too and It is broking my mind... This only when I deploy the API in cloud server, any idea?... Thanks in advance
@juliocasal
@juliocasal Жыл бұрын
Try appending .AllowAnyMethod() after .WithOrigins() to allow any verb. More info: learn.microsoft.com/en-us/aspnet/core/security/cors
@shittusulaimon2716
@shittusulaimon2716 2 жыл бұрын
Amazing please work on a full asp.net 7 api course please
@juliocasal
@juliocasal 2 жыл бұрын
It's coming! learn.dotnetmicroservices.com/courses/asp-net-core-full-stack
@juliocasal
@juliocasal 5 ай бұрын
Here: kzbin.info/www/bejne/d5mkqX-ffKhqhsU
@dharanidevi4549
@dharanidevi4549 Жыл бұрын
How abt extra steps for post and put request
@juliocasal
@juliocasal Жыл бұрын
I cover those here: kzbin.info/www/bejne/eKq8qp5umrJ6bMU
@saurabhk96
@saurabhk96 Жыл бұрын
I have tried all steps and many other documents. Nothing worked.
@juliocasal
@juliocasal Жыл бұрын
Hope this helped!
@yasinmuratakyuz2253
@yasinmuratakyuz2253 Жыл бұрын
anlat anlat
@juliocasal
@juliocasal Жыл бұрын
OK!
@juliocasal
@juliocasal 5 ай бұрын
?
Clean Architecture | A Practical ASP.NET Core Implementation
26:32
Understanding CORS with ASP.NET Core C#
17:44
Raw Coding
Рет қаралды 13 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
React Proxy | Easiest Fix to CORS Errors
15:52
Sam Meech-Ward
Рет қаралды 97 М.
Ethical Hacking in 100 Seconds // And why do we need CORS?
11:05
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 330 М.
ASP.NET Core Logging Crash Course
30:36
Julio Casal
Рет қаралды 8 М.
What is Cross Origin Resource Sharing? Never Get CORS Errors Again
8:36
Mehul - Codedamn
Рет қаралды 16 М.
.NET 8  .🚀🔥:  Understanding CORS with ASP.NET
14:06
Mohamad Lawand
Рет қаралды 11 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 53 М.
ASP.NET Core JWT Authentication and role-based authorization
39:17
How To Containerize a .NET App Without a Dockerfile
39:16
Julio Casal
Рет қаралды 9 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН