I am getting error Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://some-domain/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502

When I go to domain https://some-domain it works but when i route to path /routes it gives me error .

2. Error messages:

When i hit https://some-domain/routes i get error which says "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://some-domain/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 502."