Hi there 👋
Noticed that for a POST request, the JSONAPI.ContentTypeNegotiation plug will return 406 unless accept header is set to:
application/vnd.api+json OR
- not set at all
But why is that accept: */* or even accept: application/json is not acceptable?
Is there anything in the spec (https://jsonapi.org/format/#content-negotiation) stating that the client MUST provide an accept header with those strict conditions during POST?
Thanks!
Hi there 👋
Noticed that for a
POSTrequest, theJSONAPI.ContentTypeNegotiationplug will return406unlessacceptheader is set to:application/vnd.api+jsonORBut why is that
accept: */*or evenaccept: application/jsonis not acceptable?Is there anything in the spec (https://jsonapi.org/format/#content-negotiation) stating that the client MUST provide an
acceptheader with those strict conditions duringPOST?Thanks!