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
@weboko
"nwaku does not allow cross origin requests explicitly.
Because of that browser should send request with no-cors mode which downgrades request to Content-Type = text/plain;charset=UTF-8
nwaku of course rejects with it making it impossible to interact "
Details
Normally nwaku rest interface expect application/json content types but nothing prevent to attempt interpret plain text body types convert as from json format. Of course if something will not match we need to return specific error.
Acceptance criteria
all previous functionality must keep working, but rest request with text/plain contentType descriptor must be accepted either.
The text was updated successfully, but these errors were encountered:
Background
@weboko
"nwaku does not allow cross origin requests explicitly.
Because of that browser should send request with no-cors mode which downgrades request to Content-Type = text/plain;charset=UTF-8
nwaku of course rejects with it making it impossible to interact "
Details
Normally nwaku rest interface expect application/json content types but nothing prevent to attempt interpret plain text body types convert as from json format. Of course if something will not match we need to return specific error.
Acceptance criteria
The text was updated successfully, but these errors were encountered: