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

188
Views
post request using crud crud in react js

Trying post request in crud crud dynamically using fetch api but its showing error net::ERR_ABORTED 415 (Unsupported Media Type)

const addItemToCartHandler = async (item) => {
 const data = {
      id: item.id,
      price: item.price,
      title: item.title,
    };

    const response = await fetch(
      `https://crudcrud.com/api/48b546b22bf645d89b3f91c1f04f7cdd/cart${authCtx.idToken}`,
      {
        body: JSON.stringify(data),
        method:'POST',
        headers: {
          "Content-type": "application/json",
        },
        mode: "no-cors",
      }
    );
    if (response.ok) {
      console.log(response);
    }
}
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!