Skip to content

Commit

Permalink
Merge pull request #532 from rullyrmd/bug/remove-feature-policy-from-…
Browse files Browse the repository at this point in the history
…header

Remove Feature-Policy from Header
  • Loading branch information
poppastring authored Mar 5, 2021
2 parents 4795b33 + ea471d0 commit 06b9a13
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/DasBlog.Web.UI/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IDasBlog

app.Use(async (context, next) =>
{
//w3c draft
context.Response.Headers.Add("Feature-Policy", "geolocation 'none';midi 'none';sync-xhr 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';fullscreen 'self';payment 'none';");
//being renamed/changed to this soon
context.Response.Headers.Add("Permissions-Policy", "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()");
await next.Invoke();
Expand Down

0 comments on commit 06b9a13

Please sign in to comment.