IIS 默认只放行常用动词,PUT 与 DELETE 会被请求筛选挡回。
选中站点,双击请求筛选,切到 HTTP 谓词页签,点允许谓词。
把 PUT、DELETE 加进去,也可直接允许所有谓词图省事。
改动即时生效不重启;配置写进 web.config 的 verbs 节点。
<!-- web.config 片段 -->
<security>
<requestFiltering>
<verbs allowUnlisted="false">
<add verb="GET" allowed="true" />
<add verb="PUT" allowed="true" />
<add verb="DELETE" allowed="true" />
</verbs>
</requestFiltering>
</security>
THE END






暂无评论内容