1
0
This commit is contained in:
syui 2024-04-02 21:19:45 +09:00
parent d2d97dc4aa
commit 3e3622fb7d
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 2 additions and 0 deletions

View File

@ -1078,6 +1078,7 @@ func encodeListUserCardResponse(response ListUserCardRes, w http.ResponseWriter,
}
func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *ListUserMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json")

View File

@ -1078,6 +1078,7 @@ func encodeListUserCardResponse(response ListUserCardRes, w http.ResponseWriter,
}
func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *ListUserMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json")