HTTP OPTIONS request on Azure Websites fails due to CORS

后端 未结 3 819
情歌与酒
情歌与酒 2020-11-27 21:50

I\'ve recently moved our servers from Rackspace CloudSites (running on Apache/Linux) to Windows Azure Websites. Since the migration, all the jQuery AJAX requests on our REST

3条回答
  •  再見小時候
    2020-11-27 22:33

    HTTP OPTIONS request fails because the default PHP-CGI handler does not handle the "OPTIONS" verb.

    Add the following code in web.config file will solve the issue.

    
      
        
        
          
          
          
        
      
    
    

    I have a blog post on this: http://tekblg.blogspot.sg/2013/09/azure-websites-php-cross-domain-request.html

提交回复
热议问题