kopia lustrzana https://github.com/fediversespace/fediverse.space
				
				
				
			add security headers to netlify frontend
							rodzic
							
								
									94034ee538
								
							
						
					
					
						commit
						3db98cbfa0
					
				
							
								
								
									
										11
									
								
								netlify.toml
								
								
								
								
							
							
						
						
									
										11
									
								
								netlify.toml
								
								
								
								
							| 
						 | 
				
			
			@ -2,6 +2,9 @@
 | 
			
		|||
  base = "frontend/"
 | 
			
		||||
  publish = "frontend/build/"
 | 
			
		||||
 | 
			
		||||
[build.environment]
 | 
			
		||||
  INLINE_RUNTIME_CHUNK = "false"
 | 
			
		||||
 | 
			
		||||
[context.develop.environment]
 | 
			
		||||
  REACT_APP_STAGING = "true"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -16,3 +19,11 @@
 | 
			
		|||
  to = "/index.html"
 | 
			
		||||
  status = 200
 | 
			
		||||
 | 
			
		||||
[[headers]]
 | 
			
		||||
  for = "/*"
 | 
			
		||||
  [headers.values]
 | 
			
		||||
  X-Content-Type-Options = "nosniff"
 | 
			
		||||
  X-Frame-Options = "DENY"
 | 
			
		||||
  X-XSS-Protection = "1"
 | 
			
		||||
  Content-Security-Policy = "default-src 'self' https://*.fediverse.space; style-src 'self' 'unsafe-inline'"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue