r0man / cljs-http

A ClojureScript HTTP library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show all response headers

apsdehal opened this issue · comments

If I try to get :headers from the response, only header I get is content-type.

commented

I think you might have a CORS problem. Did you try to set the access-control-allow-headers on your server?

Yes. I have set the access-control-allow-headers on the server. In fact, I am seeing the response headers in the network tab of chrome debugger.

commented

Sorry, I meant this header: access-control-expose-headers

No we don't have that, if it is necessary how is network showing the response headers?

commented

I have set them to Access-Control-Expose-Headers: etag, link, x-total

Thanks for the help, let me confirm this and I will close the issue.

Thanks issue is solved.

I am experiencing problems retrieving the etag value from the response provided by the server. The server has been setup to expose the etags through the following configuration:

Access-Control-Expose-Headers: etag, link, x-total.

The only headers returned are {last-modified Fri, 05 Jun 2015 07:45:53 GMT, content-language en, content-type application/json}. The server has been configured to allow CORS requests to receive etag information but it still doesn't work.

Any ideas on how to resolve this will be greatly appreciated.