I need to change the request headers on my login request:
facebook: {
endpoints: {
login: {
headers: { Accept: 'application/vnd.api+json', 'Content-Type': 'application/vnd.api+json' }
}
},
access_token_endpoint: 'http://****.**/**/social',
access_type: 'offline',
client_id: '******',
grant_type: 'authorization_code',
redirect_uri: socialLoginUrl + '/account/aanmelden',
response_type: 'code',
token_key: 'jwt',
userinfo_endpoint: 'http://****.**/**user/profile'
},
I added the endpoints
which is recommend
When I do this request the back-end returns a 406 because the headers are incorrect:
question from:
https://stackoverflow.com/questions/65830227/how-to-change-headers-in-facebook-strategy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…