mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-02 13:48:15 +02:00
Mac cors policy
This commit is contained in:
parent
a57717cff6
commit
f9ab08ad64
@ -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("*");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user