Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iframe into xss white list #242

Merged
merged 1 commit into from
Mar 22, 2019
Merged

Add iframe into xss white list #242

merged 1 commit into from
Mar 22, 2019

Conversation

devformatters
Copy link
Contributor

As title.

@devformatters
Copy link
Contributor Author

(8) editor iframe支持

@@ -2,7 +2,8 @@ import xss from 'xss'

const CUSTOM_WHITE_LISTS = {
figure: [],
figcaption: []
figcaption: [],
iframe: ['src']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we allow other attributes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add some the following if they're needed. :)

@devformatters devformatters merged commit 89d24c5 into develop Mar 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/iframe branch March 22, 2019 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants