Create new note with rest api

Hello,

how to create new note with rest api?

URL:- http://locahost:8000/api/resource/Note
Method:- POST
Query Params:- {data={“title”:“testing”}}

Response:- Server error

how to create new todo with rest api?

URL:- http://locahost:8000/api/resource/ToDo
Method:- POST
Body:- “description”:“testing”

Response:- [“exc_type”: CSRFTokenError, “_server_messages”: [“{"message": "Invalid Request", "indicator": "red"}”]]

@saurabh6790

hii did you solve the error

Hi. Did you solve this error?

using http://127.0.0.1:{port number} instead of http://localhost:{port number} worked for me