Linked Questions

2 votes
0 answers
7k views

I'm using axios whenever I call API it would be called twice as I see in network in chrome devtools in the devtool and in the header of the network first one's header looks like this which I don't ...
joseph smith's user avatar
0 votes
1 answer
2k views

Basically, when I make a PUT request using jQuery.ajax method. It does not work properly. For example: $.ajax({ "url": "http://quironapi.twotigers.local/cidades/editar/1", &...
CarlosCarucce's user avatar
1 vote
1 answer
1k views

I wanted to send a json via POST request (with ajax) to my server, however every attempt was blocked by CORS. Reading about why it's blocked didn't help at all. At some point one of the comments on ...
Legatio's user avatar
  • 329
1 vote
1 answer
901 views

Code: function App() { useEffect(() => { axios({ url: 'http://____/user/list', method: 'GET', dataType: 'json', headers: { ...
anonym's user avatar
  • 4,900
1 vote
0 answers
578 views

Continue to receive this as a return for a $.ajax post. "401 (API requests require HTTP Basic Auth or OAuth.) Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-...
VanCoon's user avatar
  • 431
2 votes
0 answers
389 views

The documentation of the Geoserver mentions about REST examples. I managed to achieve that using PHP. But I fail with Javascript. It show Status Code 403, which means Forbidden. Here's my javascript ...
zeroflaw's user avatar
  • 574
-1 votes
2 answers
571 views

I am trying to call a POST request in ReactJs using Axios, but getting an error. Code: const payload = { device_id: 'ASDACCAS', device_type: 'Web', ...
Mayank Pahuja's user avatar
0 votes
1 answer
407 views

fetch(BaseURL + type, { method: 'GET', headers: { 'Authorization': 'Bearer' + token } } When I use GET method it changes the method to OPTIONS. Works fine with Safari. Sometimes ...
Wojciech Nowakowski's user avatar
0 votes
1 answer
243 views

Running into a bad request 400 error when using axios call to endpoint ending in .php. Code for the call looks like this const API = { userLogin: function () { const email = "test@email&...
Matt Volonnino's user avatar
2 votes
0 answers
238 views

I am using Linkedin API v2 to post on my profile and on my company's page. The /accessToken route works fine, but all others (/me, /organizationalEntityAcls, /ugcPosts) give me the following error: ...
Thomas's user avatar
  • 21
1 vote
0 answers
250 views

I've got a simple localhost server which runs fine from my browser. I provide it a key "name" and value, it returns "Hello " + the value. For example, if I open a browser and enter http://localhost:...
Philip's user avatar
  • 147
0 votes
0 answers
146 views

I am working on a project to send an SOAP request using XmlHttpRequest in JavaScript. I want to create custom headers in my request like this: POST https://www.toto.com/soap HTTP/1.1 Accept-Encoding:...
Louise Godec's user avatar
1 vote
0 answers
52 views

I am using CosmosDB with Blazor WebAssembly (client side). I have noticed one thing, every time there are two same request occur for data. I have attached that extra request detail image. I want to ...
Umang's user avatar
  • 71
2214 votes
39 answers
3.8m views

Is there any way to disable the Same-origin policy on Google's Chrome browser?
Landon Kuhn's user avatar
  • 78.9k
547 votes
13 answers
1.3m views

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would like to avoid setting up any server ...
dwww's user avatar
  • 5,728

15 30 50 per page
1
2 3 4 5
7