humanmade / humanmade/react-oembed-container

Allow consumer to whitelist injected scripts

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
44
Forks
12
PR merge metrics
No merged PRs in 30d

Description

A logical extension of this would be to provide a `whitelist` function on the component which accepts a function which could be used to filter the list of scripts before they get injected. A consumer of the component may want to restrict the scripts which can be handled to only be a subset of the available possibilities.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.