在wwwroot下創建web.config 內容以下:
< ?xml version="1.0" encoding="UTF-8"?>
< configuration>
< system.webServer>
< security>
< requestFiltering allowDoubleEscaping="True"/>
< /security>
< /system.webServer>
< /configuration>web
若是已有web.config,只需在其中添加<security>這一節就好了.api