-
-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
Heyo - thanks for the helpful gem 🙇
We just ran into the following set of errors when upgrading from Rails 7.0 to Rails 7.1
Turns out JSON.parse(req.body.read)
was returning an empty string because the content-type
header wasn't set in the cypress request.
We managed to fix it on the client side by adding the content type header to the appCommands
The other way that we could get it to work was replacing JSON.parse(req.body.read)
with JSON.parse(req.body)
in the middleware, but decided against it because it required overriding the gem code.
Might be worth updating the on-rails.js
template to include the content type header.
Metadata
Metadata
Assignees
Labels
No labels