一些些的code、一點點的Life,這就是生活。
Permissions Policy is a new header that allows a site to control which features and APIs can be used in the browser.
以前叫 Feature-Policy ,後來改名了。反正就是讓你的瀏覽器或 API 不能對你的網站亂來
解決方法:php 只要檔案前新增一個
header( 'Permissions-Policy:geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()' );
你可以透過下面這個網站檢查看是否有成功 https://securityheaders.com/
或是可以參考這篇的設定【FreeBSD】HTTP Header 安全性設定
一個不務正業,甚麼科技產品都玩的網路宅宅。 If you want to find me,that's easy! I will always on the Internet. so just find me, follow me. I will show you everything fun.