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

View File

@ -808,6 +808,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
}
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *ListMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json")
@ -1416,6 +1417,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
}
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *MaRead:
w.Header().Set("Content-Type", "application/json")

View File

@ -808,6 +808,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
}
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *ListMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json")
@ -1416,6 +1417,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
}
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
switch response := response.(type) {
case *MaRead:
w.Header().Set("Content-Type", "application/json")