If you're working locally, You can try a chrome extension called Allow CORS, which can solve your issue.