Hello Friends,
I have independently ask a question in the same context
but from angular
perspective.
Kindly refer my NGiNX
server configuration .
What I am phasing is, whenever my Angular
app's REST
request successfully(200) returns from server(where NGiNX
installed) in such a case NGiNX
returns sufficient headers
along with response
& I am able to successfully handle it Vs Error request/response.
Especial case is, I am unable to get request status
. For example, if my API return 401, 400, 500..
except 200 in such a case my angular
App
is getting http response-status
as a "Zero(0)" irrespective of what server returns. My main assumption is due to either CORS
issue(which is mainly all recommending to fix) or some hidden(for me).
In Angular I am able to see below things(refer screen-shot),
My assumption is, if CORS issue then my 200 request response must also
not server. so my guess is CORS I have configured correctly.
Any Help would be really appreciate in advanced!
NOTE -
- I am confuse whether it's
NGiNX
side an issue or Angular
side. that's why I ask the same question under different tags(Angular, Nginx
).
- I have also implemented SSL at server side. so kindly consider this case as well.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…