CORS Demo: POST

New Product


Code

fetch("https://api.predic8.de/shop/v2/products", {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ name, price })
  });

Running the Demo

  1. Open the network tab in your browser’s developer tools (F12)
  2. Toggle "Enable CORS"
  3. Submit the form
  4. Inspect the request URL and response
© 2025 predic8 GmbH · Legal Notice Privacy