Linked Questions
10 questions linked to/from Why does Fetch API Send the first PUT request as OPTIONS
Score of 111
5 answers
117789 views
fetch() does not send headers?
I am sending POST request like this from browser:
fetch(serverEndpoint, {
method: 'POST',
mode: 'no-cors', // this is to prevent browser from sending 'OPTIONS' method request first
...
Score of 27
1 answer
3000 views
How do I opt out of HTTP/2 server push when using fetch?
I am writing a basic app in Javascript that uses the new fetch API. Here is a basic example of the relevant portion of the code:
function foo(url) {
const options = {};
options.credentials = 'omit'...
Score of 8
1 answer
4427 views
Why is the TLS client certificate not being included in preflight request on most browsers?
I'm having an issue with a web app I'm building. The web app consists of an angular 4 frontend and a dotnet core RESTful api backend. One of the requirements is that requests to the backend need to be ...
Score of 1
1 answer
3611 views
Why javascript fetch only making OPTIONS and not making further calls?
I am making AJAX request with javascript fetch, but it is only making OPTIONS call and not making further call. Weirdest thing is that the response header is just fine and $.ajax is working as ...
Score of 2
2 answers
2272 views
Unable to get JSON using Fetch API, but can using JQuery
I'm integrating a React project into a Grails/Angular system, and I'm trying to query Grails using the Fetch API from React.
With the application running and the Chrome developer tools console open, ...
Score of 0
2 answers
3065 views
Response from pre-flight failing with Status 405
I'll start by saying I'm a bit of a newb when it comes to Javascript/React. I am attempting to communicate with my WCF endpoint server but I can’t seem to send any POST messages without getting a ...
Score of 0
1 answer
831 views
Can a browser make an HTTP request to itself?
It's easy enough to use AJAX from a browser to an external address, (i.e. external to the browser, even if it's localhost) but I have a different question.
Is there some kind of object or service ...
Score of 0
2 answers
145 views
fetch GET returns nothing(204) but works(200) in Chrome DevTools
I am trying to write a GET http call to a site to get game scores. I figured out the x-hsci-auth-token token and it uses Akamai Edge Authorization Token. I get good responses for all but 1 request.
...
Score of 1
0 answers
82 views
Some Nuxt 3 API endpoints work and some not, same code logic for client and server
I'm making a fully AI made app, for the sake of experimenting and because I needed something fast. One feature is importing a CSV file into a sqlite database (I'm using Bun) and another is adding ...
Score of -3
3 answers
233 views
Sending request from React to FastAPI causes a CORS policy error [closed]
When I send a fetch request from the frontend server (React) to the backend server (FastAPI), an error occurs:
localhost/:1 Access to fetch at 'http://localhost:8000/predict/' from
origin 'http://...