How to get PUT and DELETE verbs to work with WebAPI on IIS

后端 未结 3 1220
小蘑菇
小蘑菇 2020-12-18 10:16

I am using WebAPI PUT and DELETE methods to perform actions from my website via AJAX using jQuery. My server is Windows Server 2008 R2 with Plesk installed. POST and GET r

3条回答
  •  猫巷女王i
    2020-12-18 10:42

    An extract from my web.config around the ExtensionlessUrlHandler-Integrated-4.0.

    Looking at the difference between yours and mine I don't have this section resourceType="Unspecified" requireAccess="Execute". I also use verb="*" that shouldn't make a difference but might be worth a try.

    Also note I do not have accessPolicy="Read, Execute, Script" attribute in the handlers section. I also do not remove WebDAV.

    
        
            
            
            
            
        
    
    

    Possible answer from: https://stackoverflow.com/a/18458139/1398425

    
      
        
          
          
          
        
      
      
        
      
    
      
      
        
        
        
        
        
        
      
    
    

提交回复
热议问题