Feature Policy warnings
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
Direzione di ricerca
Inizia individuando la generazione dell’embed iframe di YouTube e la configurazione degli header della risposta del CDN o della pagina descritte nell’issue. Riproduci gli avvisi di Feature-Policy in un browser e confronta l’elenco allow dell’iframe con l’header della risposta. Il lavoro è completo quando è stato selezionato e implementato un approccio supportato, gli avvisi sono stati risolti e le funzionalità previste, come autoplay, sono state verificate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
YouTube embeds (possibly others?) trigger a large number of "Feature Policy" warnings that seem to stem from the feature allow list set on the video iframe embed.
Feature policies are tweakable via the Feature-Policy response header
The iframe itself comes from the YouTube iframe embed API which sets a number of "allows" including, among others: autoplay, accelerometer, clipboard-write.
Because we are not setting the Feature-Policy header on CDN content, there is then a resulting discontinuity between what the YouTube API is allowing and what the page response headers are allowing, resulting in these warnings. Since the warnings result in the browser erring on the side of safety, they are not especially problematic, but are indicative of potential features that might be unlocked. In particular we may want to support autoplay -- it is not clear if any of the other features might be useful.
At this time, the YouTube iframe embed API does not seem to support tweaking the allow list. Thus, the fix to this would be either to allow all of these features via Feature-Policy header, or to generate our own iframe code without the API. (Note that simply modifying the allow list after the iframe is injected will not actually squelch these warnings.)
- Lingua principale
- JavaScript
- Stelle
- 248
- Fork
- 61
- Merge medio
- 1m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NUKnightLab/StoryMapJS
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#507 ·
-
Visual glitches Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
NUKnightLab/StoryMapJS#506 ·
-
Provide a npm distribution Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#505 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 50/100
NUKnightLab/StoryMapJS#495 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NUKnightLab/StoryMapJS#488 ·
Tutte le issue di NUKnightLab/StoryMapJS
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
Mintplex-Labs/anything-llm#6490 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
[quality] workflow-scripts guard reads test:unit:coverage as skipping the unit suite, blocking #632 Apertaagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
area-clientside-dartpad
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100