Updated entry to accept Access Control Allow Origin from https://dev.psg.net.au explicitly.

Removed line entry for old legacy IP address.
This commit is contained in:
2025-09-22 01:49:45 +00:00
parent 73a7579ff2
commit 046985259c

View File

@@ -138,7 +138,7 @@ public class BasicConfiguration implements WebMvcConfigurer {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of("http://localhost:3000","https://localhost:3000", "https://sys.psg.net.au", "http://172.16.10.180:3000", "https://dev.psg.net.au:3000"));
configuration.setAllowedOrigins(List.of("http://localhost:3000","https://localhost:3000", "https://sys.psg.net.au", "https:dev.psg.net.au//", "https://dev.psg.net.au:3000"));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true);