You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is already some code that filters wp_headers to add a value for Content-Security-Policy, then this value wipes that out without any consideration for what may already be there.
Could the method be a bit more subtle and check for the presence of a Content-Security-Policy, and append upgrade-insecure-requests if it doesn't already exist / amend the value if there is a value that would conflict with that?
The text was updated successfully, but these errors were encountered:
This method is a filter on
wp_headers
action:pwa-wp/wp-includes/class-wp-https-ui.php
Lines 343 to 346 in 330c76b
If there is already some code that filters wp_headers to add a value for
Content-Security-Policy
, then this value wipes that out without any consideration for what may already be there.Could the method be a bit more subtle and check for the presence of a
Content-Security-Policy
, and appendupgrade-insecure-requests
if it doesn't already exist / amend the value if there is a value that would conflict with that?The text was updated successfully, but these errors were encountered: