Skip to content

Commit

Permalink
Add the frame-src permission with YouTube hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Dec 3, 2022
1 parent 347395f commit 7b27991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/desktop/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module.exports = {
"img-src * blob: data:",
// Allow <audio> and <video> to load any resources
"media-src * blob:",
// For st.video() to work with YouTube links. It handles YouTube links in a special way and loads YT resources: https://github.com/streamlit/streamlit/blob/1.15.2/frontend/src/components/elements/Video/Video.tsx#L69
"frame-src https://*.youtube.com",
]
.filter(Boolean)
.join("; ");
Expand Down

0 comments on commit 7b27991

Please sign in to comment.