fix: cannot fullscreen due to Permission-Policy (#2281)

This commit is contained in:
Alex 2023-07-30 02:45:30 +08:00 committed by GitHub
parent ee6ee30df1
commit e59c2af818
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -242,6 +242,9 @@ export default defineNuxtConfig({
'style-src': ['\'self\'', '\'unsafe-inline\''],
'upgrade-insecure-requests': true,
},
permissionsPolicy: {
fullscreen: ['\'self\'', 'https:', 'http:'],
},
},
rateLimiter: false,
},

View file

@ -165,7 +165,7 @@ em-emoji-picker {
html,
body,
#__nuxt {
height: 100vh;
min-height: 100vh;
margin: 0;
padding: 0;
}