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
A user reported that Chrome started throwing CORB (Cross-Origin-Read-Blocking) warnings when the content type was set to application/json; charset=utf-8
Charset was removed from Content-Type intentionally in latest slim 3.x version. See slimphp/Slim#2629 for reasons.
Ensure that composer respects our PHP support commitment.
As per IANA notes on media types https://www.iana.org/assignments/media-types/application/json the charset parameter has no effect on the content type
application/json
.A user reported that Chrome started throwing CORB (Cross-Origin-Read-Blocking) warnings when the content type was set to
application/json; charset=utf-8
We need to remove
; charset=utf-8
fromResponse::withJson()
https://github.com/slimphp/Slim/blob/8e43e5d0e2882fc70b23265e402072bbd686c2bb/Slim/Http/Response.php
Looking for a new contributor to raise a PR for this.
The text was updated successfully, but these errors were encountered: