mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 22:42:25 -06:00 
			
		
		
		
	dev proxy: strip CSP header
This commit is contained in:
		
					parent
					
						
							
								05a29c2287
							
						
					
				
			
			
				commit
				
					
						31287c8899
					
				
			
		
					 1 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
					@ -47,9 +47,13 @@ skulk({
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	servers: {
 | 
						servers: {
 | 
				
			||||||
		express: {
 | 
							express: {
 | 
				
			||||||
			proxy: "http://127.0.0.1:8081",
 | 
								proxy: {
 | 
				
			||||||
			assets: "/assets"
 | 
									target: "http://127.0.0.1:8081",
 | 
				
			||||||
		}
 | 
									onProxyRes: (proxyRes) => {
 | 
				
			||||||
 | 
										// CSP header prevents react-devtools and redux-devtools extensions from working
 | 
				
			||||||
 | 
										delete proxyRes.headers['content-security-policy'];
 | 
				
			||||||
 | 
									},
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	bundles: {
 | 
						bundles: {
 | 
				
			||||||
		frontend: {
 | 
							frontend: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue