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

send authentication headers when calling aptly API #6

Open
erdeerdeerde opened this issue Aug 25, 2017 · 3 comments
Open

send authentication headers when calling aptly API #6

erdeerdeerde opened this issue Aug 25, 2017 · 3 comments

Comments

@erdeerdeerde
Copy link

Ive noticed that when the UI calls eg. /api/repos the authentication header is not sent, thus i can not access the API.

@sdumetz
Copy link
Owner

sdumetz commented Aug 28, 2017

Yep, looks like I forgot the {credentials: 'same-origin'} option in fetch() calls. Not using Auth myself, thanks for reporting.

@benelgiac
Copy link

Encountering the same error, API is not usable with authentication. Any plans to fix this? :) thanks

@benelgiac
Copy link

By the way, I have never touched a line of js code, but based on your hint, the attached stupid patch made the trick for me and it now everything seems working with authentication.

stupid_patch.diff.txt

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

3 participants