chrome cors error localhost
//in my case i just added the 
  'content-type': 'text/plain',
  
  
in side my header it is working now
example : ========================
     {
        method: 'POST',
        headers: { 
            'content-type': 'text/plain',
           
        }
    }
