mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Additional control of iframes in oneboxes (#10523)
This commit adds a new site setting "allowed_onebox_iframes". By default, all onebox iframes are allowed. When the list of domains is restricted, Onebox will automatically skip engines which require those domains, and use a fallback engine.
This commit is contained in:
@@ -1482,6 +1482,11 @@ security:
|
||||
allowed_internal_hosts:
|
||||
default: ""
|
||||
type: list
|
||||
allowed_onebox_iframes:
|
||||
default: "*"
|
||||
type: list
|
||||
allow_any: false
|
||||
choices: "['*'] + Onebox::Engine.all_iframe_origins"
|
||||
allowed_iframes:
|
||||
default: "https://www.google.com/maps/embed?|https://www.openstreetmap.org/export/embed.html?|https://calendar.google.com/calendar/embed?|https://codepen.io/"
|
||||
type: list
|
||||
|
||||
Reference in New Issue
Block a user