JSFiddle - React, Tailwind, and code Playground

by puuga

JavaScript

$.ajax({
    type: 'POST', 
    url: 'https://ecomapi.generali.co.th/api/0.1/product/form', 
    data: '{}', 
    dataType: 'json', 
    contentType: 'application/json', 
    xhrFields: { withCredentials: true }, 
    success: function(res) { console.log('success') }, 
    error: function() { 
            console.error('error')
    }
  });