fix
This commit is contained in:
parent
d2d97dc4aa
commit
3e3622fb7d
@ -1078,6 +1078,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")
|
||||||
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")
|
||||||
|
@ -1078,6 +1078,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")
|
||||||
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user