401 unauthorized after creating a post request for ading data

Hi guys,
i’m beginner. and I’m testing on postman. i created this post request with this url http://localhost:8080/api/v1/servizi/create but i have 401 unauthorized error.coul you please guide me to solve it.
thanks alot.

POST http://localhost:8080/api/v1/servizi/create40113 ms

  • :arrow_forward:Network

:arrow_forward:Request Headers

Authorization: Bearer

Content-Type: application/json

User-Agent: PostmanRuntime/7.30.0

Accept: /

Postman-Token: …

Host: localhost:8080

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 51

:arrow_forward:Request Body

:arrow_forward:Response Headers

Vary: Origin

Vary: Access-Control-Request-Method

Vary: Access-Control-Request-Headers

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

Cache-Control: no-cache, no-store, max-age=0, must-revalidate

Pragma: no-cache

Expires: 0

X-Frame-Options: DENY

Content-Length: 0

Date: Fri, 30 Dec 2022 11:49:32 GMT

Keep-Alive: timeout=60

Connection: keep-alive

:arrow_forward:Response Body

Hi @sara1985,

The 401 response from the server usually indicates that either no authentication credentials were provided or the ones provided were invalid for the request. Do check them to confirm this.

Also, see if you would need any proxy configuration required to get these requests working. More details are below: