How do I add CORS headers on a per folder basis on IIS?

前端 未结 2 1804
失恋的感觉
失恋的感觉 2020-12-18 06:39

I have some images on my site that I need to enable cross-domain access for, but I don\'t want to add it to all images. I know I could do this:



        
2条回答
  •  情歌与酒
    2020-12-18 07:16

    Yes, there is. Just create a new web.config file in that folder, and it will apply to that folder only.

提交回复
热议问题