Comments (5)
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.
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.
Hmm, interesting...
So what was that anyway? 😀
from ng-http-interceptor.
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.
Alright, I see now.
Glad you solved it.
from ng-http-interceptor.
Related Issues (20)
- Get headers on response HOT 1
- Intercept responseError HOT 1
- ng build --prod fails when HttpInterceptorModule imported in app.module HOT 6
- Don't require RxJS version higher than what Angular requires HOT 2
- How to handle http request cancellation in http-interceptor HOT 3
- (do) function not working in TypeScript 2.3.4 HOT 2
- IE11 Shims/Polyfills issue HOT 10
- Cancelling request type HOT 3
- Interceptors not running HOT 8
- Property 'do' does not exist on type 'Observable<Response>'. HOT 2
- Response interceptor is not called on error HOT 6
- Interceptors can only use in app moudle,could it import once use all moudle HOT 2
- Intercept header parameters at app run HOT 2
- Requests are send twice HOT 1
- Interceptor getting called only in preflight request not in subsequent call HOT 4
- Add support for new HttpClient HOT 5
- Interceptor is making service sending requests twice in lazy loaded module HOT 3
- keep seeing __extends is not defined HOT 2
- I think we should support angular8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-http-interceptor.