Feature/ implement basic search function #40

Merged
kasun merged 30 commits from feature/Implement-basic-search-function into main 2026-06-25 17:58:40 +02:00
3 changed files with 6 additions and 15 deletions
Showing only changes of commit ef09a3c84d - Show all commits
@@ -8,16 +8,13 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class CorsConfig implements WebMvcConfigurer {
@Value("${vaessl.frontend-local-url}")
private String frontendLocalUrl;
@Value("${vaessl.frontend-public-url}")
private String frontendPublicUrl;
@Value("${vaessl.allowed-origins}")
private String[] allowedOrigins;
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(frontendLocalUrl, frontendPublicUrl)
.allowedOrigins(allowedOrigins)
.allowedMethods("GET", "POST", "DELETE", "OPTIONS")
.allowedHeaders("Content-Type", "Accept")
.allowCredentials(true);
@@ -5,13 +5,8 @@
"description": "A description for 'spring.session.store-type'"
},
{
"name": "vaessl.frontend-local-url",
"name": "vaessl.allowed-origins",
"type": "java.lang.String",
"description": "A description for 'vaessl.frontend-local-url'"
},
{
"name": "vaessl.frontend-public-url",
"type": "java.lang.String",
"description": "A description for 'vaessl.frontend-public-url'"
"description": "Comma-separated list of allowed CORS origins"
}
]}
+1 -2
View File
@@ -30,5 +30,4 @@ server:
servlet:
context-path: /api
vaessl:
frontend-local-url: ${FRONTEND_LOCAL_URL}
frontend-public-url: ${FRONTEND_PUBLIC_URL}
allowed-origins: ${ALLOWED_ORIGINS}