mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-06 13:48:58 +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")
|
@ConditionalOnProperty(name = "STIRLING_PDF_TAURI_MODE", havingValue = "true")
|
||||||
public void addCorsMappings(CorsRegistry registry) {
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
registry.addMapping("/**")
|
registry.addMapping("/**")
|
||||||
.allowedOrigins("http://localhost:5173", "http://tauri.localhost")
|
.allowedOrigins("http://localhost:5173", "http://tauri.localhost", "tauri://localhost")
|
||||||
.allowedMethods("*")
|
.allowedMethods("*")
|
||||||
.allowedHeaders("*");
|
.allowedHeaders("*");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user