adding Access-Control-Allow-Origin in header axios code example Example: axios delete is throwing cors error headers: {"Access-Control-Allow-Origin": "*"}