📝 Notice on sandbox attribute.
		
	This commit is contained in:
		
					parent
					
						
							
								77253abbd7
							
						
					
				
			
			
				commit
				
					
						e3d67a304f
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -66,6 +66,14 @@ An example of enable node integration in iframe with `node-integration` set to
 | 
				
			||||||
<iframe src="http://jandan.net"></iframe>
 | 
					<iframe src="http://jandan.net"></iframe>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					And you should also notice that the iframes can have access to parent window's
 | 
				
			||||||
 | 
					javascript objects via `window.parent`, so in order to grant complete security
 | 
				
			||||||
 | 
					from iframes, you should add `sandbox` attribute to the iframes:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```html
 | 
				
			||||||
 | 
					<iframe sandbox="allow-scripts" src="http://bbs.seu.edu.cn"></iframe>
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Event: 'page-title-updated'
 | 
					### Event: 'page-title-updated'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* `event` Event
 | 
					* `event` Event
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue