You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we blocked from going above version 0.48 as a result. We could put a patch in to essentially await the response from RW graphQL handlers and then re-configure the headers to splice multiValueHeaders onto headers. I don’t know enough about the use of multiValueHeaders to understand if this would have unknown consequences. I’ve done this here on a test branch for the fresh deploy of v2 and it works, but it feels very hacky to do this, id rather wait till an offical patch (edited)
The text was updated successfully, but these errors were encountered:
And the request I'm sending has the origin set to one of those origins.
Netlify
Partially correct results, with most of the headers except the origin being returned.
Response headers
HTTP/1.1 204 No Content
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: content-type, content-type
Access-Control-Allow-Methods: POST, PUT, GET, POST, PUT, GET
Access-Control-Allow-Origin: null 👈 WHY?!
Which probably means, its not reading the origin correctly in the incoming request, but respects the multiValueHeaders returned in the graphql function (judging by the other headers)
Vercel
Completely incorrect results, where no CORS headers are returned
Original issue from Redwood startup club
This may actually be an issue with Vercel, but has come out with the recent RW deploy. I can see return shape from RW graphql handler to be:
A quick google I found this somewhat recent issue posted: vercel/vercel#7820
A bit more debugging
I did some quick digging into the change to yoga and noticed these lines https://github.com/redwoodjs/redwood/pull/4712/files#diff-46853308693ceb8d5244a4caed6f4301331faaf4f267e15401e60815a7962574R254-R259
Atleast within this PR I dont see the extra work to replace these removed lines to splice the multiValueHeaders back onto the response headers?
The text was updated successfully, but these errors were encountered: