aptly-web-ui
aptly-web-ui copied to clipboard
send authentication headers when calling aptly API
Ive noticed that when the UI calls eg. /api/repos the authentication header is not sent, thus i can not access the API.
Yep, looks like I forgot the {credentials: 'same-origin'} option in fetch() calls. Not using Auth myself, thanks for reporting.
Encountering the same error, API is not usable with authentication. Any plans to fix this? :) thanks
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.