Update cors.md (#30015)

* Update cors.md

* Apply suggestions from code review

* Update aspnetcore/security/cors.md

* Update aspnetcore/security/cors.md

* Update aspnetcore/security/cors.md
pull/30017/head
Rick Anderson 2023-08-09 14:18:59 -10:00 committed by GitHub
parent ffd9141366
commit 512066820d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ uid: security/cors
By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Kirk Larkin](https://twitter.com/serpent5)
This article shows how to enable CORS in an ASP.NET Core app.
This article shows how **C**ross-**O**rigin **R**esource **S**haring ([CORS](https://developer.mozilla.org/docs/Web/HTTP/CORS)) in enabled in an ASP.NET Core app.
Browser security prevents a web page from making requests to a different domain than the one that served the web page. This restriction is called the *same-origin policy*. The same-origin policy prevents a malicious site from reading sensitive data from another site. Sometimes, you might want to allow other sites to make cross-origin requests to your app. For more information, see the [Mozilla CORS article](https://developer.mozilla.org/docs/Web/HTTP/CORS).