misc
This commit is contained in:
@@ -46,11 +46,12 @@ builder.Services.AddCors(o =>
|
|||||||
{
|
{
|
||||||
p.AllowAnyMethod();
|
p.AllowAnyMethod();
|
||||||
p.AllowAnyHeader();
|
p.AllowAnyHeader();
|
||||||
#if DEBUG
|
p.WithExposedHeaders("Grpc-Status", "Grpc-Message", "Grpc-Encoding", "Grpc-Accept-Encoding");
|
||||||
p.AllowAnyOrigin();
|
p.AllowAnyOrigin();
|
||||||
#else
|
//#if DEBUG
|
||||||
p.WithOrigins("http://127.0.0.1:8080", "https://aoba.app");
|
//#else
|
||||||
#endif
|
// p.WithOrigins("https://aoba.app", "https://grpc.aoba.app");
|
||||||
|
//#endif
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user