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

Categories

0 votes
993 views
in Technique[技术] by (71.8m points)

nuxt.js - How to change headers in Facebook strategy?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...