Rock [Azure]
See all Azure roles
Course info
Oct 10, 2018
1h 0m

Cross-Origin Resource Sharing (CORS) is an HTTP feature that can restrict how clients request your content. In this course, Microsoft Azure Developer: Configuring CORS Access for Storage, you will learn foundational knowledge of how CORS rules can be enabled, configured, and used with Azure Storage services. First, you will see how CORS works in practice. Next, you will discover how Azure Storage evaluates CORS rules. Finally, you will explore how to configure rules with common Azure SDKs and tooling. When you’re finished with this course, you will have the skills and knowledge of configuring CORS needed to manage cross-origin requests to your Azure Storage services.

About the author
About the author

Kamran Ayub is a technologist specializing in full-stack web solutions. He's a huge fan of open source and of sharing what he knows.

More from the author
RavenDB 4: Getting Started
2h 15m
Feb 7, 2018
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Kamran Ayub, and welcome to my course, Configuring CORS Access for Storage, part of the Microsoft Azure developer course catalog here at Pluralsight. I'm a technologist, speaker, and of course, Pluralsight author based in the Midwest, and I've been working with Azure throughout most of my career, so I am super excited to bring you this course. Now you might have brushed up against CORS when working with client-side ajax requests, but it can also be a powerful way to tell browsers how to restrict and request content from your Azure storage services. I'm going to be talking about how to implement Cross-Origin Resource Sharing or CORS for short with Azure Storage Services, and since I love being hands-on there's going to be plenty of demos. We'll learn how CORS rules work outside of and within Azure Storage, and cover topics like CORS scenarios and usage, automation with Azure tools and SDKs, CORS restrictions in different environments, and how rules get evaluated by Azure Storage. By the end of this course you'll learn how CORS works in general as an HTTP security feature and how to use it when configuring Azure Storage Services. Before beginning the course, you should be familiar with how Azure works and how to create and manage Azure Storage accounts, but you don't need to be familiar with CORS itself. I hope you'll join me on this journey to learn about CORS with the Configuring CORS Access for Storage course at Pluralsight.

Azure Storage CORS Concepts
Hi. I'm Kamran Ayub, and let me welcome you to my course, Configuring CORS Access for Storage, part of the Microsoft Azure Developer course catalog here at Pluralsight. As a long time Microsoft Azure developer myself, I'm excited to cover this topic and help you walk through understanding CORS and how to add CORS support to your Azure storage accounts. This module focuses on CORS concepts and features, both in general as an HTTP feature, and within Azure storage. If you aren't very familiar with CORS concepts or you need a refresher I'll explain the difference between simple requests and CORS requests, and we'll see all of it in action within a browser context. I'll also cover some key CORS features like wildcard origins, dynamic origins, and credentialed requests. Finally, you'll learn about important features, limitations, and billing applications when using CORS in Azure storage. Even if you've dealt with CORS before in your application development career, you may still learn something new about CORS. I know that I did while authoring this course, so let's jump in.

Configuring Azure Storage CORS Rules
It's time we learn how CORS rules and Azure Storage get evaluated and run for requests, as well as how to configure CORS using the various Azure tools and SDKs. This module is organized so that you can jump to a specific type of automation tool if you need to or you can watch them in order if you haven't used them before. I don't assume you have the tools installed or how they work, so I'll explain each one at the start of each demo and we'll walk through them together. First, we'll spend some time learning exactly how Azure implements CORS in the context of Azure Storage accounts and the semantics of how rules are evaluated. Then we'll see where CORS configuration can be managed in the portal UI. After that I'll walk through some scenarios using various Azure Automation tools like the PowerShell SDK, Azure CLI, and the Azure Storage Management REST APIs. Finally, I'll touch on how this automation works alongside Azure resource manager templates, which help automate deployments of Azure resources via schema documents. I host all of my course content on GitHub. To get there you can follow this link. I always commit to keeping the GitHub files up-to-date, as well as posting errata and update notes there. As part of this course offering, you will also find the same files within Pluralsight under the Exercise Files section. These could be out-of-date, but I do my best to keep them updated. The GitHub repository will definitely have the latest files.