diff --git a/ent/ogent/oas_response_encoders_gen.go b/ent/ogent/oas_response_encoders_gen.go index 645a4f5..067a954 100644 --- a/ent/ogent/oas_response_encoders_gen.go +++ b/ent/ogent/oas_response_encoders_gen.go @@ -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") diff --git a/tmp/ogent/oas_response_encoders_gen.go b/tmp/ogent/oas_response_encoders_gen.go index 645a4f5..067a954 100644 --- a/tmp/ogent/oas_response_encoders_gen.go +++ b/tmp/ogent/oas_response_encoders_gen.go @@ -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")