Problem with Facebook login not matching CSRF state token

前端 未结 7 1979
离开以前
离开以前 2021-01-03 03:11

I did some searches and I didn\'t find anything that was related to my problem.

I\'m currently trying to implement a Facebook login to my website and I\'m having pro

7条回答
  •  醉酒成梦
    2021-01-03 03:52

    I assume you mean the PHP SDK?

    Sounds like you're not passing the 'state' request variable to your PHP script. Have you read https://developers.facebook.com/docs/authentication/ (specifically the bits and protecting yourself from CSRF?).

    Also, I assume this is a typo in your question, but shouldn't your rewrite rule be:

    RewriteRule ^webhosting-([a-z_0-9-]+)/$ /view_webhosting.php?**webhosting**=$1 [L]
    

提交回复
热议问题