There is need to add the cross origin headers in the header section of the project..
If you are working in the front end project in technology like react.js or angular then try to add the meta tags in the header of html file.
Meta tags -: