mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-31 10:37:13 -04:00 
			
		
		
		
	Finishing CORS for IS
This commit is contained in:
		
							parent
							
								
									9b12495a94
								
							
						
					
					
						commit
						16a9a5f7cc
					
				| @ -110,7 +110,7 @@ namespace Kyoo | |||||||
| 			 | 			 | ||||||
| 			services.AddSingleton<ICorsPolicyService>(new DefaultCorsPolicyService(_loggerFactory.CreateLogger<DefaultCorsPolicyService>()) | 			services.AddSingleton<ICorsPolicyService>(new DefaultCorsPolicyService(_loggerFactory.CreateLogger<DefaultCorsPolicyService>()) | ||||||
| 			{ | 			{ | ||||||
| 				AllowedOrigins = { new Uri(publicUrl).Authority } | 				AllowedOrigins = { new Uri(publicUrl).GetLeftPart(UriPartial.Authority) } | ||||||
| 			}); | 			}); | ||||||
| 
 | 
 | ||||||
| 			services.AddScoped<ILibraryManager, LibraryManager>(); | 			services.AddScoped<ILibraryManager, LibraryManager>(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user