Answers for "cors not working localhost"

1

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',
           
        }
    }
Posted by: Guest on September-24-2021
1

cors error localhost

Chrome does not support localhost for CORS requests (a bug opened in 2010, marked WontFix in 2014).

To get around this you can use a domain like localho.st (which points at 127.0.0.1 just like localhost) or start chrome with the --disable-web-security flag (assuming you're just testing
Posted by: Guest on June-22-2021

Code answers related to "cors not working localhost"

Browse Popular Code Answers by Language