但是当我使用fetch API从随机站点发送post数据时,它会给我一个CORS错误。当我在google上搜索如何在express中禁用CORS时,它给了我一堆关于如何启用CORS的结果。在快递中CORS的默认设置是什么,我需要禁用它吗?。If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource withCORS
EnableCors属性接受string类型的policyName作为参数:// Creates a new instance of the Microsoft.AspNetCore.Cors.Core.EnableCorsAttributeThe name of the policy to be applied.policyName是什么意思如何在核心Web API上配置