Coder Social home page Coder Social logo

Comments (5)

gund avatar gund commented on May 16, 2024

Hi, the library does only proxying over angular's http service so this is all that you have from the original response.
According to this issue you won't get those headers anyways via vanilla XHR API.

In short you have to specify exactly names of the headers you want have access to via access-control-expose-headers: 'name-of-expose-header'

from ng-http-interceptor.

pford68 avatar pford68 commented on May 16, 2024

That's for the quick response. Turns out the answer was none of the above--something simple and obvious (in retrospect) and that had nothing to do with anything you or I or the commenters in the linked article thought of.

from ng-http-interceptor.

gund avatar gund commented on May 16, 2024

Hmm, interesting...
So what was that anyway? 😀

from ng-http-interceptor.

pford68 avatar pford68 commented on May 16, 2024

We needed to hit a certain proxy, in short, in order to see the headers, and we configured the wrong hostname in order to receive those headers. The HTML page itself returned those headers, but no AJAX calls went through the proxy, so we received no headers. Obvious now, but in the heat of the moment, no.

from ng-http-interceptor.

gund avatar gund commented on May 16, 2024

Alright, I see now.
Glad you solved it.

from ng-http-interceptor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.