Merge pull request #627 from SISheogorath/fix/XSS
Prevent XSS vulnerbility by srcdoc in iframe
This commit is contained in:
		
						commit
						8ea09a8bd0
					
				@ -18,7 +18,7 @@ whiteList['style'] = []
 | 
				
			|||||||
// allow kbd tag
 | 
					// allow kbd tag
 | 
				
			||||||
whiteList['kbd'] = []
 | 
					whiteList['kbd'] = []
 | 
				
			||||||
// allow ifram tag with some safe attributes
 | 
					// allow ifram tag with some safe attributes
 | 
				
			||||||
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'srcdoc', 'width', 'height']
 | 
					whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
 | 
				
			||||||
// allow summary tag
 | 
					// allow summary tag
 | 
				
			||||||
whiteList['summary'] = []
 | 
					whiteList['summary'] = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user