From 3e3622fb7da8be23d49ab1930da9a18313b48c64 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 2 Apr 2024 21:19:45 +0900 Subject: [PATCH] fix --- ent/ogent/oas_response_encoders_gen.go | 1 + tmp/ogent/oas_response_encoders_gen.go | 1 + 2 files changed, 2 insertions(+) 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")