app.UseCors(x => x .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); app.UseHttpsRedirection(); code example · Example: asp.net core allow all origins.
確定! 回上一頁