trezy / next-safe

https://trezy.gitbook.io/next-safe/
BSD 3-Clause "New" or "Revised" License
172 stars 20 forks source link

[BUG]: #49

Closed heymartinadams closed 1 year ago

heymartinadams commented 1 year ago

Describe the bug

When running next-safe I get this console warning in latest macOS Chrome 109.0.5414.119.

CleanShot 2023-02-02 at 20 17 34@2x

Steps To Reproduce

Create a basic next-safe header with no permissionsPolicy.

Version

v3.x.x

Relevant log output

Error with Feature-Policy header: Unrecognized feature: 'speaker-selection'.
Error with Feature-Policy header: Unrecognized feature: 'battery'.
Error with Feature-Policy header: Unrecognized feature: 'navigation-override'.
Error with Feature-Policy header: Unrecognized feature: 'web-share'.
Error with Feature-Policy header: Some features are specified in both Feature-Policy and Permissions-Policy header: clipboard-read, clipboard-write, gamepad, accelerometer, ambient-light-sensor, autoplay, camera, cross-origin-isolated, display-capture, document-domain, encrypted-media, execution-while-not-rendered, execution-while-out-of-viewport, fullscreen, geolocation, gyroscope, magnetometer, microphone, midi, payment, picture-in-picture, publickey-credentials-get, screen-wake-lock, sync-xhr, usb, xr-spatial-tracking. Values defined in Permissions-Policy header will be used.
Error with Permissions-Policy header: Unrecognized feature: 'speaker-selection'.
Error with Permissions-Policy header: Unrecognized feature: 'battery'.
Error with Permissions-Policy header: Unrecognized feature: 'navigation-override'.
Error with Permissions-Policy header: Unrecognized feature: 'web-share'.

Code of Conduct

heymartinadams commented 1 year ago

I just saw this. https://trezy.gitbook.io/next-safe/usage/troubleshooting#why-do-i-see-so-many-unrecognized-feature-warnings

I know these warning messages are “minor” and can be ignored, but as I keep looking at them day-in and day-out, at some point they drive me mad. Wish I could turn them off somehow.