Closed pro-cms closed 3 years ago
You need to use the JSON:API media type in your Accept
header: application/vnd.api+json
.
application/json
isn't valid for a JSON:API request.
when I useapplication/vnd.api+json the request doesn't work, it returns an empty array
Empty array means there's no matching data.
Hi, want to make my stories route protected only for authenticated users, for that I used laravel sanctum wherein the request i attach bear token as for authorization but when I send the request I got an error response. When i remove header Application/json it returns empty array ,
when I add it got this error
Here is my route
Here is my request Dart
Any idea how to resolve this issue