How to read response headers in angularjs?

前端 未结 7 1330
终归单人心
终归单人心 2020-11-27 17:17

My server returns this kind of header: Content-Range:0-10/0:

\"enter

相关标签:
7条回答
  • 2020-11-27 17:45
    response.headers();
    

    will give you all the headers (defaulat & customs). worked for me !!

    Note . I tested on the same domain only. We may need to add Access-Control-Expose-Headers header on the server for cross domain.

    0 讨论(0)
提交回复
热议问题