Is it possible to add response http headers in web.config?

后端 未结 6 976
挽巷
挽巷 2020-12-29 02:35

In my application I need to set a http response header. I\'d like to do this in web.config.

6条回答
  •  暖寄归人
    2020-12-29 03:36

    There is no built-in functionality that does this

    You can make an HttpModule that reads headers from web.config and adds them to the response.

提交回复
热议问题