Skip to content

Commit

Permalink
[BUGFIX] revent sending auth headers for public requests (#5804)
Browse files Browse the repository at this point in the history
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

Closes #5803

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
  • Loading branch information
frascuchon authored Feb 6, 2025
1 parent 6f84185 commit cabc9dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions argilla-frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ These are the section headers that we use:

## [2.7.1](https://github.com/argilla-io/argilla/compare/v2.7.0...v2.7.1)

### Fixed

- Fixed error when requesting dataset info the datasets-viewer API. ([#5804](https://github.com/argilla-io/argilla/pull/5804))

## [2.7.0](https://github.com/argilla-io/argilla/compare/v2.6.0...v2.7.0)

## [2.6.0](https://github.com/argilla-io/argilla/compare/v2.5.0...v2.6.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useAxiosExtension = (context: Context) => {
const makePublic = (config: PublicAxiosConfig) => {
const $axios = context.$axios.create({
withCredentials: false,
headers: { Authorization: undefined },
});

if (config.enableErrors) {
Expand Down

0 comments on commit cabc9dc

Please sign in to comment.