Skip to content

Commit ba0c285

Browse files
author
Andre Dewes
committed
Better CORS methods and headers description
1 parent 63020f1 commit ba0c285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/app-service/app-service-web-tutorial-rest-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ You can use your own CORS utilities instead of App Service CORS for more flexibi
195195
>
196196
>
197197

198+
## Allowed CORS methods and headers
199+
The built-in App Service CORS feature does not have options to allow only specific HTTP methods or verbs for each origin that you specify. It will automatically allow all methods and headers for each origin defined. This behavior is similar to [ASP.NET CORS](https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-6.0#enable-cors-with-attributes) policies when you use the options `.AllowAnyHeader()` and `.AllowAnyMethod()` in the code.
200+
198201
[!INCLUDE [cli-samples-clean-up](../../includes/cli-samples-clean-up.md)]
199202

200203
<a name="next"></a>

0 commit comments

Comments
 (0)