A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Azure-Samples/functions-js-spa below:

Azure-Samples/functions-js-spa: Azure Functions sample that hosts a SPA in Azure Storage and uses proxies to change page content.

services platforms author

functions

javascript

lindydonna

Azure Functions Proxies Sample

This sample demonstrates a simple single page application that is hosted on Azure Storage. The site returns a different Azure Functions logo whenever the site is refreshed. The SPA calls APIs that are served from Azure Functions. Proxies are used to route the site root to the SPA and also provide access to the GetFunctionLogo function.

  1. Create a new public container in an Azure Storage account. Copy the files in the ContentFiles folder to this container.

  2. Add a CORS setting for your storage account:

  3. Deploy to Azure

Navigate to the root of your Function App (https://yourappname.azurewebsites.net/), and you will see the HTML page that is hosted on Azure Storage.

To learn more about Azure Functions Proxies, see the following:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4