[api] swagger 셋팅중

- cors 화이트리스트 허용방식 변경
This commit is contained in:
2026-02-26 11:10:00 +09:00
parent 2799a61380
commit 63ae5ed6c9
9 changed files with 153 additions and 82 deletions
-10
View File
@@ -18,16 +18,6 @@ jwt:
cookie:
secure: false # 로컬 개발 환경 (HTTP)
cors:
allowed-origins:
- "http://localhost:8100"
- "http://localhost:8101"
- "http://localhost:8102"
- "http://localhost:8103"
- "http://localhost:8104"
- "http://localhost:8105"
- "http://localhost:8108"
swagger:
login:
id: alist
-17
View File
@@ -20,23 +20,6 @@ jwt:
cookie:
secure: true # 프로젝트 환경 (HTTPS)
cors:
allowed-origins:
- "http://localhost:8100"
- "http://localhost:8101"
- "http://localhost:8102"
- "http://localhost:8103"
- "http://localhost:8104"
- "http://localhost:8105"
- "http://localhost:8108"
- "https://wwwl-alist.pjt.kr"
- "https://engl-alist.pjt.kr"
- "https://admin-alist.pjt.kr"
- "https://wwwc-alist.pjt.kr"
- "https://class-alist.pjt.kr"
- "https://student-alist.pjt.kr"
- "https://storybook-alist.pjt.kr"
swagger:
login:
id: ${SWAGGER_ID}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.alist.api.modules.auth.mapper.TestCorsMapper">
<select id="selectTestCorsAllowedList" resultType="String">
/* TestCorsMapper.selectAllowedOrigins */
SELECT DISTINCT allowed_origin
FROM test_cors_allowed_list
WHERE del_yn = 1
AND (
user_token_idx = 0
<if test="userTokenIdx != null">
OR user_token_idx = #{userTokenIdx}
</if>
)
</select>
</mapper>