Skip to content

Conversation

@AbderrahmaneMouzoune
Copy link
Contributor

@AbderrahmaneMouzoune AbderrahmaneMouzoune commented Apr 15, 2025

What does it do?

Now we can add some custom headers for all request to strapi client.

Why is it needed?

Can be useful when needed to ask for only draft or preview mode

How to test it?

I added unit test related to it, and config for headers was already here just not consume

Related issue(s)/PR(s)

Issue : #77

@Convly Convly added pr: feature New or updates to features source: client Source is the main client object community Changes and fixes created by community members labels Apr 16, 2025
@hanpaine hanpaine requested a review from jhoward1994 April 16, 2025 08:17
@github-project-automation github-project-automation bot moved this to To be reviewed (Open) in Developer Experience Squad Apr 16, 2025
@hanpaine
Copy link

FYI @maccomaccomaccomacco

@hanpaine hanpaine moved this from To be reviewed (Open) to Scheduled in sprint in Developer Experience Squad Apr 24, 2025
@jhoward1994 jhoward1994 self-assigned this Apr 28, 2025
Copy link
Contributor

@jhoward1994 jhoward1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! I'll add some documentation for this to the README in a follow up PR but otherwise it looks good

@jhoward1994 jhoward1994 merged commit b99c3d4 into strapi:main Apr 28, 2025
7 checks passed
@hanpaine hanpaine moved this from Scheduled in sprint to Fixed/Shipped in Developer Experience Squad May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Changes and fixes created by community members pr: feature New or updates to features source: client Source is the main client object

Projects

Status: Fixed/Shipped

Development

Successfully merging this pull request may close these issues.

4 participants