我想在特定位置添加特定配置(web.config)xml文件,例如“C:\ home \ dota”。配置文件有一个<configurations>
选项卡,在其下方,我想输入此配置以启用CORS。
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
如何使用Windows批处理文件实现此目的,请在这方面帮助我。