Blob storage COEP and cross origin isolation support

Vladimir Dronov 101 Reputation points
2021-09-28T20:14:04.807+00:00

Does Blob storage support or are there any plans to add support in the future for cross origin isolation (Cross-Origin-Embedder-Policy: require-corp)?

Situation: There is a page with COEP header specified, it wants to load a PDF document in an iframe from a blob storage but it fails.

According to https://docs.google.com/document/d/1zDlfvfTJ_9e8Jdc8ehuV4zMEu9ySMCiTGMS9y0GU92k/edit
"Same-origin iframes must allow themselves to be loaded by setting their own COEP header."

The fail must be because there is no COEP header in response from a blob storage.
So the question is: is there a way to configure it somehow? if not, what's the suggested worksaround?

Thanks!

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,538 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,201 questions
{count} votes

Accepted answer
  1. Vladimir Dronov 101 Reputation points
    2021-10-20T15:51:38.487+00:00

    After some investigation, it turns out that a Blob Storage service does not support COEP or CORP. And as of today there is not way you can configure Blob Storage to include Cross-Origin-Embedder-Policy and Cross-Origin-Resource-Policy header in the response.
    Two things can be done here to workaround that:

    1. Use Azure CDN and it's rule engine to modify the origin response headers ( https://learn.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-reference ) . This incurs additional charges for CDN usage.
    2. Introduce a reverse proxy in front of the blob storage to add\rewire custom response headers.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.