Here is the article clearly explain the CROS Origin error in detail. [https://blog.bitsrc.io/how-and-why-you-should-avoid-cors-in-single-page-apps-db25452ad2f8]