Skip to content

Commit f301a36

Browse files
author
Andre Dewes
committed
Moving paragraph to the previous H2
1 parent 9eb2ac6 commit f301a36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,13 @@ Congratulations, you're running an API in Azure App Service with CORS support.
190190
191191
You can use your own CORS utilities instead of App Service CORS for more flexibility. For example, you may want to specify different allowed origins for different routes or methods. Since App Service CORS lets you specify one set of accepted origins for all API routes and methods, you would want to use your own CORS code. See how ASP.NET Core does it at [Enabling Cross-Origin Requests (CORS)](/aspnet/core/security/cors).
192192
193+
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 Core CORS](/aspnet/core/security/cors) policies when you use the options `.AllowAnyHeader()` and `.AllowAnyMethod()` in the code.
194+
193195
> [!NOTE]
194196
> Don't try to use App Service CORS and your own CORS code together. When used together, App Service CORS takes precedence and your own CORS code has no effect.
195197
>
196198
>
197199

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 Core CORS](/aspnet/core/security/cors) policies when you use the options `.AllowAnyHeader()` and `.AllowAnyMethod()` in the code.
200-
201200
[!INCLUDE [cli-samples-clean-up](../../includes/cli-samples-clean-up.md)]
202201

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

0 commit comments

Comments
 (0)