Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working header X-Access-Token #97

Open
dark4eg opened this issue Mar 29, 2016 · 1 comment
Open

not working header X-Access-Token #97

dark4eg opened this issue Mar 29, 2016 · 1 comment

Comments

@dark4eg
Copy link

dark4eg commented Mar 29, 2016

(go (let [response (<! (http/get "endpoint"
                                 {:headers {"X-Access-Token"  "token"}}))]
      (println "status" (:status response))
      (println "body" (:body response))))

request headers in browser not contains X-Access-Token header

@r0man
Copy link
Owner

r0man commented Mar 30, 2016

@dark4eg Are other headers sent along? You may have to configure your server to allow some headers.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Access-Control-Allow-Headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants