Mac cors policy

This commit is contained in:
Connor Yoh 2025-07-14 15:34:36 +01:00
parent a57717cff6
commit f9ab08ad64

View File

@ -37,7 +37,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@ConditionalOnProperty(name = "STIRLING_PDF_TAURI_MODE", havingValue = "true")
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "http://tauri.localhost")
.allowedOrigins("http://localhost:5173", "http://tauri.localhost", "tauri://localhost")
.allowedMethods("*")
.allowedHeaders("*");
}