更新时间:2023-02-17 09:59:56
确保您的 web api 与 '.' 配合使用(点)在路径为 '*.' 的全局处理程序之前添加一个特定的 API 处理程序
To make sure your web api works with '.' (dot) add a specific API handler BEFORE the global handler with path '*.'
见下例:
<add name="ApiURIs-ISAPI-Integrated-4.0-ForApi" path="/api/*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />