enabling cross-origin resource sharing on IIS7

后端 未结 10 2191
轻奢々
轻奢々 2020-11-22 15:22

I recently ran into with posting Javascript requests to another domain. By default XHR posting to other domains is not allowed.

Following the instructions from htt

10条回答
  •  梦谈多话
    2020-11-22 15:56

    One thing that has not been mentioned in these answers is that if you are using IIS and have sub applications with their own separate web.config, you may need to have a web.config in the parent directory containing the following code.

    
      
        
        
        
      
    
    

提交回复
热议问题