feat(N/A): 配置dev环境的cors配置

This commit is contained in:
guo
2025-10-26 16:49:35 +08:00
parent 6ac2237a52
commit 130f42df7c
@@ -22,7 +22,7 @@ public class SaTokenDevFilterConfig {
.setBeforeAuth(r -> {
String path = SaHolder.getRequest().getRequestPath(); // 不含上下文
String method = SaHolder.getRequest().getMethod();
log.debug("[DEV] {} {}", method, path);
log.info("[DEV] {} {}", method, path);
if ("OPTIONS".equalsIgnoreCase(SaHolder.getRequest().getMethod())) {
SaHolder.getResponse().setStatus(200);
SaRouter.back();