Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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:

enter image description here

question from:https://stackoverflow.com/questions/65830227/how-to-change-headers-in-facebook-strategy

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.0k views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...