Skip to content

Conversation

@sonicoder86
Copy link
Contributor

Vite dev server needs specific text/html to be within the Accept header, otherwise it won't respond with 200 OK.

By default Axios within the wait-on package sends this header: 'Accept': application/json, text/plain, */*', the below modification is just an addition

resolves #294

@bahmutov
Copy link
Owner

Makes sense, thanks for tracking this down

@bahmutov bahmutov merged commit 7a9f94b into bahmutov:master Jan 31, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run tests with Vite dev server

2 participants