Skip to content

Commit

Permalink
removes Cross-Origin-Embedder-Policy header because it breaks all our…
Browse files Browse the repository at this point in the history
… youtube embeds (#1853)
  • Loading branch information
Masterjun3 committed May 19, 2024
1 parent 954f307 commit 59dac25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TASVideos/Extensions/ApplicationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public static IApplicationBuilder UseMvcWithOptions(this IApplicationBuilder app
]);
app.Use(async (context, next) =>
{
context.Response.Headers["Cross-Origin-Embedder-Policy"] = "credentialless";
context.Response.Headers["Cross-Origin-Opener-Policy"] = "same-origin";
context.Response.Headers["Cross-Origin-Resource-Policy"] = "cross-origin"; // TODO this is as unsecure as before; should be `same-site` or `same-origin` when serving auth-gated responses
context.Response.Headers["Permissions-Policy"] = permissionsPolicyValue;
Expand Down

0 comments on commit 59dac25

Please sign in to comment.