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
- Open the network tab in your browser’s developer tools (F12)
- Toggle "Enable CORS"
- Submit the form
- Inspect the request URL and response
© 2025 predic8 GmbH · Legal Notice Privacy