fix(security): permit storefront SPA static(assets/img/admin)+product images public — resolve 403 on /, /img/products, /admin
This commit is contained in:
parent
bc4afe7c2d
commit
4ce97d8807
@ -45,6 +45,11 @@ public class SecurityConfig {
|
|||||||
.requestMatchers("/actuator/health").permitAll()
|
.requestMatchers("/actuator/health").permitAll()
|
||||||
.requestMatchers("/ws/mall/**").permitAll()
|
.requestMatchers("/ws/mall/**").permitAll()
|
||||||
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/api/mall/docs/**", "/api/mall/swagger/**").permitAll()
|
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/api/mall/docs/**", "/api/mall/swagger/**").permitAll()
|
||||||
|
// 스토어프론트 SPA 정적 리소스 + 상품 실이미지 — 공개
|
||||||
|
.requestMatchers(HttpMethod.GET,
|
||||||
|
"/", "/index.html", "/favicon.ico", "/favicon.svg", "/robots.txt", "/manifest.json",
|
||||||
|
"/assets/**", "/img/**", "/images/**", "/static/**", "/admin", "/admin/**",
|
||||||
|
"/*.js", "/*.css", "/*.png", "/*.jpg", "/*.jpeg", "/*.gif", "/*.svg", "/*.webp", "/*.ico").permitAll()
|
||||||
// 스토어프론트 공개 조회 (상품·카탈로그·리뷰·기획전·매장·권역·스케줄 브라우징)
|
// 스토어프론트 공개 조회 (상품·카탈로그·리뷰·기획전·매장·권역·스케줄 브라우징)
|
||||||
.requestMatchers(HttpMethod.GET, "/api/mall/product/**", "/api/mall/category/**",
|
.requestMatchers(HttpMethod.GET, "/api/mall/product/**", "/api/mall/category/**",
|
||||||
"/api/mall/review/**", "/api/mall/promotion/**",
|
"/api/mall/review/**", "/api/mall/promotion/**",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user