mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	add CORS settings in config-sample.ini
This commit is contained in:
		@@ -25,6 +25,11 @@ keyPath=
 | 
				
			|||||||
# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
 | 
					# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
 | 
				
			||||||
trustedReverseProxy=false
 | 
					trustedReverseProxy=false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# setting the CORS headers for cross-origin requests
 | 
				
			||||||
 | 
					# corsAllowOrigin='*'
 | 
				
			||||||
 | 
					# corsAllowMethods='GET,POST,PUT,DELETE,PATCH'
 | 
				
			||||||
 | 
					# corsAllowHeaders='Content-Type,Authorization'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Session]
 | 
					[Session]
 | 
				
			||||||
# Use this setting to set a custom value for the "Max-Age" Attribute of the session cookie.
 | 
					# Use this setting to set a custom value for the "Max-Age" Attribute of the session cookie.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user