admin管理员组文章数量:1345118
In order to validate some JWT from Facebook, I need to access to their public keys.
I'm running this code on my backend, and it returns an HTML with something like a "404 page", but, if I access it on my browser, is just works.
response = await fetch('/.well-known/oauth/openid/jwks/', {
method: 'GET',
redirect: 'follow',
follow: 100,
headers: {
Accept: 'application/json',
'Cache-Control': 'no-cache',
'Content-Type': 'application/json',
},
}).then(r => r.json());
Can you spot any issue there?
Why is Facebook blocking my calls? Is there another way to do this?
I need to access to those public keys because I want to validate the AuthenticationToken coming from a "Login with Facebook" flow
本文标签: nodejsWhy can39t I access to facebookcomwellknownoauthopenidjwks from NodeJS serverStack Overflow
版权声明:本文标题:node.js - Why can't I access to facebook.com.well-knownoauthopenidjwks from NodeJS server? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743751710a2532772.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论