Skip to content

Commit a429b23

Browse files
fix cors
1 parent d9c1c0f commit a429b23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/softeno/template/app/user/api/Controller.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ class UpdateController(
107107
set("Cache-Control", "no-cache, no-store, must-revalidate")
108108
set("Connection", "keep-alive")
109109
set("X-Accel-Buffering", "no")
110+
set("Access-Control-Allow-Origin", "*")
111+
set("Access-Control-Allow-Methods", "*")
112+
set("Access-Control-Allow-Headers", "*")
113+
set("Access-Control-Expose-Headers", "*")
110114
}
111115
return updateEmitter.getSink()
112116
}

0 commit comments

Comments
 (0)