When creating a Vue.js component, I want to send a GET request to a server with specific headers. How can I achieve this?
Using cURL:
-X GET "http://134.140.154.121:7075/rest/api/Time" -H "accept: application/json" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkFZd21VU0Jvd2lxcVRSRG81NTctVFEiLCJ0eXAiOiJhdCtqd3QifQ.eyJuYmYiOjE1OTMfryyw"
The response body contains the following information:
{ "values": { "value": "string" } }
How can I include header and authentication settings in my request?