Write Api( /api/v3/) put,post methods returns Forbidden,but get,head methods works well
-
Write Api( /api/v3/) put,post, returns Forbidden,but get,head works well
-
@Nuran-Akimbek what headers are you sending in?
-
@julian Authorization: Brearer with token
content-type: application/jsoncurl "https://forum.orleu-edu.kz/api/v3/users/86540"
-X PUT
-d "{\r\n"fullname": "Mr. Dragon Fruit Jr.",\r\n"website": "https://example.org",\r\n"location": "Toronto, Canada",\r\n"groupTitle": "[\"administrators\",\"Staff\"]",\r\n"birthday": "03/27/2020",\r\n"signature": "This is an example signature\nIt can span multiple lines.\n",\r\n"aboutme": "This is a paragraph all abt how I because the administrator of NodeBB\n"\r\n}"
-H "content-type: application/json"
-H "Authorization: Bearer mytoken"I use .net framework on my client project and not create any session when call read api functions and write api get/head. May be I must create session for Put and Post using /api/v3/utilities/login?
-
After searching and reading documentation, I found that, csrf token not created in my situation.