OAuth: how to test with local URLs?

后端 未结 8 1313
粉色の甜心
粉色の甜心 2020-12-02 04:57

I am trying to test OAuth buttons, but they all (Facebook, Twitter, LinkedIn) come back with errors that seem to signal that I can not test or use them from a local

8条回答
  •  天命终不由人
    2020-12-02 05:41

    For Mac users, edit the /etc/hosts file. You have to use sudo vi /etc/hosts if its read-only. After authorization, the oauth server sends the callback URL, and since that callback URL is rendered on your local browser, the local DNS setting will work:

    127.0.0.1       mylocal.com
    

提交回复
热议问题