No 'Access-Control-Allow-Origin' header is present on the requested resource—when trying to get data from a REST API No 'Access-Control-Allow-Origin' header is present on the requested resource—when trying to get data from a REST API javascript javascript