SPFx issues with the new Referrer-Policy in Chrome >= 85

September 22, 2020

Since version 85 of Chrome, the default referrer policy has changed from no-referrer-when-downgrade to strict-origin-when-cross-origin. This change might have a significant impact on your SharePoint Framework solutions when they rely on the referrer header (or better, the referer header with a single “r”). What is the referrer header? Whenever your browser does an API call, the referrer header gets used to indicate the page’s origin from where it was performed.

Read more

Parse multipart/form-data in Azure Function

September 2, 2020

While working on an internal Azure Static Web Site project, I needed to upload CSV files to an Azure Function to import data to Cosmos DB. When uploading a file to your API, the multipart/form-data content-type is used. The body’s format looks a bit “special” as it requires some parsing to get each file.

Read more

Retrieving the CosmosDB query continuation token in Node.js

August 26, 2020

For one of our internal tools at Valo, I am creating a portal for managing our project localizations. The portal itself will be produced as a static website and hosted on Azure Static Web App. The great thing about Azure Static Web Apps is that it comes with hosting and the ability to create Azure Functions.

Read more

Parse application/x-www-form-urlencoded in Azure Function

August 22, 2020

For a Mailchimp webhook, I had to parse the application/x-www-form-urlencoded form data to JSON. Azure Functions does not automatically do this for you, so you have to provide your parser. I knew that I had already done this, so I went on a search journey through my code. To make it easier next time, I wanted to share the code snippet with the rest of you.

Read more

Manual GitHub workflow triggers for Azure Static Web Site

August 16, 2020

In July 2020, GitHub released a new manual trigger feature for its GitHub Actions workflows. This trigger allows you to run a workflow from the UI, or you can also use it to run it via an HTTP POST request. The HTTP POST request option makes it very useful to trigger your workflow to run from an external system.

Read more

How to make local Azure Static Web App development easier

August 14, 2020

Static sites are cool again (actually for a long time), and Microsoft knows that. Their new Azure Static Web App - App Service is currently in preview. At the moment, it still misses some key functionalities, but I am sure that these will get added once they put it in GA (hopefully to be announced at Ignite in September 2020).

Read more