GET https://appleid.apple.com/auth/keys returning locked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hi Im trying to retrieve Apple public key for token sign verification but im getting this error.

Code Block language
fetch("https://appleid.apple.com/auth/keys").then((data)=>{console.log(data)})


Error
Code Block language
Access to fetch at 'https://appleid.apple.com/auth/keys' from origin '***' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.




GET https://appleid.apple.com/auth/keys returning locked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
 
 
Q