added presentation
This commit is contained in:
		
							
								
								
									
										12
									
								
								src/index.ts
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/index.ts
									
									
									
									
									
								
							@@ -55,8 +55,18 @@ app.use('/api-doc', helmet.contentSecurityPolicy({
 | 
			
		||||
    imgSrc: [`'self'`, 'data:']
 | 
			
		||||
  }
 | 
			
		||||
}));
 | 
			
		||||
// special CSP header for the intro-presentation
 | 
			
		||||
app.use('/static/intro-presentation/index.html', helmet.contentSecurityPolicy({
 | 
			
		||||
  ...defaultHeaderConfig,
 | 
			
		||||
  directives: {
 | 
			
		||||
    defaultSrc: [`'none'`],
 | 
			
		||||
    scriptSrc: [`'self'`, `'unsafe-inline'`],
 | 
			
		||||
    styleSrc: [`'self'`, `'unsafe-inline'`],
 | 
			
		||||
    imgSrc: [`'self'`]
 | 
			
		||||
  }
 | 
			
		||||
}));
 | 
			
		||||
// special CSP header for the bosch-logo.svg
 | 
			
		||||
app.use('/static/img/bosch-logo.svg', helmet.contentSecurityPolicy({
 | 
			
		||||
app.use('/static/*.svg', helmet.contentSecurityPolicy({
 | 
			
		||||
  ...defaultHeaderConfig,
 | 
			
		||||
  directives: {
 | 
			
		||||
    styleSrc: [`'unsafe-inline'`]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user