Category "xmlhttprequest"

Should we build Mongoose queries on the frontend or backend?

We can build complex queries with Mongoose with options like $lte, $gt, $ne and so on... but I'm wondering where/how we should build those queries? If I have a

Keycloak gives me XMLHttpRequest error. with flutter but don't with postman

Goodmorning, I'm trying to use keycloak and flutter but unfortunally when i ask the token to keycloak he gives me an XMLHttpRequestError. I use thos method to a

USPS Address Validation API using XML and Javascript

I ran the following code (with my user Id entered): const xhttp = new XMLHttpRequest(); const url = 'https://secure.shippingapis.com/ShippingAPI.dll?API=Verify'

How to fix `TypeError: Illegal Invocation` on an XMLHttpRequest wrapped in an ES6 Proxy

I'm writing a proxy for XMLHttpRequests, to force them to return a specific status code. I'm able to run functions on proxy, but setting fails with a TypeError:

Add a parameter to Strapi V4 request header

I am using Strapi V4 as my CMS and using ECS S3 as the media storage. I am using https://www.npmjs.com/package/@strapi/provider-upload-aws-s3 as the provider up

I am getting XMLHttpRequest Error when I am trying to connect to parse server from flutter web app

I am getting XMLHttpRequest error whenever I am trying to connect to parse server through the flutter web app. I found it to be CORS issue but don't know how to

OpenWeatherMap API to get weather of multiple cities in XHR

I am new to API. I am trying to get the weather of 2 cities, but I am not able to think of a solution. Here is my code: function loadDoc() { var xhttp = new X

Deprecation Synchronous XMLHttpRequest

I see this error: "[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. Fo

React: Module not found: Can't resolve 'xmlhttprequest'

I'm getting an error when trying to build my React project: ./node_modules/ethers/utils/web.js Module not found: Can't resolve 'xmlhttprequest' in '/mnt/c/User

TinyMCE4 `image_list` external url

I am trying to get TinyMCE 4's image_list to work with a URL returning JSON data as specified in the example here. I have setup a GET endpoint http://demo.com

Selenium Python - Get Network response body

I use Selenium to react to the reception of data following a GET request from a website. The API called by the website is not public, so if I use the URL of the

How to make a JSON object out of getAllResponseHeaders method

I am currently writing a google chrome extension, and I need to find out information about websites' response headers. In order to do this, I used the getAllRes

How to make a JSON object out of getAllResponseHeaders method

I am currently writing a google chrome extension, and I need to find out information about websites' response headers. In order to do this, I used the getAllRes

Frontend JavaScript request gets 302-redirected but ultimately fails

I'm trying to create an audio visualization for a podcast network, using the Web Audio API with createMediaElementSource() very similarly to the model explained

Converting a text XHR-Response to arraybuffer

I'm making an XHR request. At the time of making the request, I don't know whether the URL will return an image or not, so I'm setting xhr.responseType="text"

Send Discord Embed to Webhook with XHR Request

I am writing a chrome extension in which an embed should be sent to a discord webhook. In chrome extensions, you can't import modules, so I must use XMLHttpRequ

Failed to load resource: Preflight response is not successful

Am trying to call CORS Rest API but am getting this error: Failed to load resource: Preflight response is not successful This happens on my cordova apps a

HTTP response 401 Unauthorized to CORS preflight request on ADFS WIA endpoint

I have got a problem with the WIA authentication endpoint on ADFS in Windows Server 2019 in combination with a CORS preflight request: If a client session of a