1
0
This commit is contained in:
syui 2024-04-25 18:16:10 +09:00
parent b3df3250bb
commit 823dc8d89c
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 8 additions and 8 deletions

View File

@ -924,7 +924,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
} }
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error { func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *ListMaOKApplicationJSON: case *ListMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1263,7 +1263,7 @@ func encodeListUserCardResponse(response ListUserCardRes, w http.ResponseWriter,
} }
func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error { func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *ListUserMaOKApplicationJSON: case *ListUserMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1668,7 +1668,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
} }
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error { func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *MaRead: case *MaRead:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1736,7 +1736,7 @@ func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.
} }
func encodeReadMaOwnerResponse(response ReadMaOwnerRes, w http.ResponseWriter, span trace.Span) error { func encodeReadMaOwnerResponse(response ReadMaOwnerRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *MaOwnerRead: case *MaOwnerRead:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")

View File

@ -924,7 +924,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
} }
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error { func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *ListMaOKApplicationJSON: case *ListMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1263,7 +1263,7 @@ func encodeListUserCardResponse(response ListUserCardRes, w http.ResponseWriter,
} }
func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error { func encodeListUserMaResponse(response ListUserMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *ListUserMaOKApplicationJSON: case *ListUserMaOKApplicationJSON:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1668,7 +1668,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
} }
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error { func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *MaRead: case *MaRead:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")
@ -1736,7 +1736,7 @@ func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.
} }
func encodeReadMaOwnerResponse(response ReadMaOwnerRes, w http.ResponseWriter, span trace.Span) error { func encodeReadMaOwnerResponse(response ReadMaOwnerRes, w http.ResponseWriter, span trace.Span) error {
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai") w.Header().Set("Access-Control-Allow-Origin", "*")
switch response := response.(type) { switch response := response.(type) {
case *MaOwnerRead: case *MaOwnerRead:
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")