青青河边草直播免费观看,青青河边草高清免费版新闻,青柠影院免费观看电视剧高清西瓜,青柠影院免费观看电视剧高清动漫,青青草视频在线观看,青娱乐极品视觉盛宴

0411-39943997
工作時間:周一至周日 8:30-17:30
技術(shù)文庫
Technical Library

.net core cors 跨域 get post 可以 put delete 不行

標簽: .net core cors 跨域 get post 可以 put delete 不行   訪問: 69032023-01-19

.net core cors 跨域 get post 可以 put delete 不行

在webconfig中添加:


 <?xml version="1.0" encoding="utf-8"?>

<configuration>

   <system.webServer>

     <modules runAllManagedModulesForAllRequests="true" runManagedModulesForWebDavRequests="true">

        <remove name="WebDAVModule" />

     </modules>

     <handlers>

       <remove name="WebDAV" />

       <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />

     </handlers>

     <aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\TexHong_EMWX.Web.Host.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00">

       <environmentVariables />

     </aspNetCore>

     <httpProtocol>

       <customHeaders>

         <remove name="X-Powered-By" />

       </customHeaders>

    </httpProtocol>

   </system.webServer>

 </configuration>


Asp.NETCore 部署IIS配置了允許跨域但還是不支持 PUT , POST請求

原文地址:https://www.cnblogs.com/liaoyd/p/13636995.html

Copyright? 2020 仟億科技,All rights reserved.
富宁县| 札达县| 武定县| 武义县| 成安县| 崇文区| 平凉市| 赤峰市| 监利县| 综艺| 同江市| 金堂县| 赤壁市| 肥西县| 万荣县| 长沙市| 西乌珠穆沁旗| 格尔木市| 临夏县| 香港| 营山县| 长宁县| 屏山县| 井冈山市| 全椒县| 农安县| 原平市| 雷州市| 上饶市| 轮台县| 始兴县| 平利县| 中山市| 乌鲁木齐县| 甘洛县| 清原| 铜鼓县| 南开区| 莱州市| 甘孜县| 钟山县|