mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-31 10:37:12 -04:00 
			
		
		
		
	allow document display with angular dev server
This commit is contained in:
		
							parent
							
								
									2de4f27278
								
							
						
					
					
						commit
						b0aaaa0af7
					
				| @ -125,6 +125,11 @@ TEMPLATES = [ | |||||||
| # NEVER RUN WITH DEBUG IN PRODUCTION. | # NEVER RUN WITH DEBUG IN PRODUCTION. | ||||||
| DEBUG = __get_boolean("PAPERLESS_DEBUG", "NO") | DEBUG = __get_boolean("PAPERLESS_DEBUG", "NO") | ||||||
| 
 | 
 | ||||||
|  | if DEBUG: | ||||||
|  |     X_FRAME_OPTIONS = '' | ||||||
|  |     # this should really be 'allow-from uri' but its not supported in any mayor | ||||||
|  |     # browser. | ||||||
|  | else: | ||||||
|     X_FRAME_OPTIONS = 'SAMEORIGIN' |     X_FRAME_OPTIONS = 'SAMEORIGIN' | ||||||
| 
 | 
 | ||||||
| # We allow CORS from localhost:8080 | # We allow CORS from localhost:8080 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user