Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
¿Qué encabezados debo configurar para obtener mi solicitud de recuperación?

Estoy tratando de obtener una solicitud de recuperación en un componente Svelte que funcione. Funciona bien si uso curl y Postman. Parece que mis encabezados pueden estar equivocados. ¿Alguna idea sobre lo que estoy haciendo mal aquí?

Esta es la solicitud de curl:

 curl -XPOST http://127.0.0.1:8000/parse --data 'locale=en_GB&text=Monday'

Estos son los encabezados establecidos en Postman ingrese la descripción de la imagen aquí

Y mi código:

 function handleClick() { const url = "http://127.0.0.1:8080/parse" fetch(url, { mode: 'no-cors', method: "POST", headers: { 'Content-type': 'application/x-www-form-urlencoded'}, data: new URLSearchParams({ locale: "en_GB", text: "Monday" }) }) .then(console.log("test")) .then((response) => { console.log(response); response.json().then((data) => { console.log("data"); }) }) .catch((error) => { console.log(error) }); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!