Skip to content

Commit 1de9eb6

Browse files
authored
Merge pull request #233657 from ggailey777/patch-10
[Functions] Update CORS for portal testing
2 parents c7992da + 6bbe7b6 commit 1de9eb6

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

articles/azure-functions/functions-create-function-app-portal.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ Next, create a function in the new function app.
4848
1. Under **Template details** use `HttpExample` for **New Function**, select **Anonymous** from the **[Authorization level](functions-bindings-http-webhook-trigger.md#authorization-keys)** drop-down list, and then select **Create**.
4949

5050
Azure creates the HTTP trigger function. Now, you can run the new function by sending an HTTP request.
51-
52-
>[!NOTE]
53-
> When your function app has [private endpoints](functions-create-vnet.md) enabled, you must add the following [CORS origins](security-concepts.md?#restrict-cors-access).
54-
>
55-
>- `https://functions-next.azure.com`
56-
>- `https://functions-staging.azure.com`
57-
>- `https://functions.azure.com`
58-
>- `https://portal.azure.com`
59-
6051

6152
## Test the function
6253

articles/azure-functions/functions-networking-options.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Azure Functions networking options
33
description: An overview of all networking options available in Azure Functions.
4-
author: cachai2
4+
author: ggailey777
55
ms.topic: conceptual
6-
ms.date: 3/28/2022
6+
ms.date: 4/6/2023
77
ms.author: cachai
88
---
99

@@ -283,14 +283,14 @@ The following APIs let you programmatically manage regional virtual network inte
283283
+ **Azure CLI**: Use the [`az functionapp vnet-integration`](/cli/azure/functionapp/vnet-integration) commands to add, list, or remove a regional virtual network integration.
284284
+ **ARM templates**: Regional virtual network integration can be enabled by using an Azure Resource Manager template. For a full example, see [this Functions quickstart template](https://azure.microsoft.com/resources/templates/function-premium-vnet-integration/).
285285

286-
## Testing
286+
## Testing considerations
287287

288288
When testing functions in a function app with private endpoints, you must do your testing from within the same virtual network, such as on a virtual machine (VM) in that network. To use the **Code + Test** option in the portal from that VM, you need to add following [CORS origins](./functions-how-to-use-azure-function-app-settings.md?tabs=portal#cors) to your function app:
289289

290-
* https://functions-next.azure.com
291-
* https://functions-staging.azure.com
292-
* https://functions.azure.com
293-
* https://portal.azure.com
290+
* `https://functions-next.azure.com`
291+
* `https://functions-staging.azure.com`
292+
* `https://functions.azure.com`
293+
* `https://portal.azure.com`
294294

295295
## Troubleshooting
296296

includes/functions-in-portal-editing-note.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
author: ggailey777
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 02/15/2021
5+
ms.date: 04/6/2023
66
ms.author: glenga
77
---
88

99
>[!NOTE]
10-
>In-portal editing is only supported for JavaScript, PowerShell, TypeScript, and C# Script functions.<br><br>For C# class library, Java, and Python functions, you can create the function app in the portal, but you must also create the functions locally and then publish them to Azure.
10+
>In-portal editing is only supported for JavaScript, PowerShell, Python, and C# Script functions. Python in-portal editing is only supported when running in the Consumption plan and using the Python v1 programming model.<br><br>For compiled C# functions, Java functions, and other Python functions, you can create the function app in the portal, but you must also create the functions code project locally and then publish it to Azure.

0 commit comments

Comments
 (0)