OAuth: how to test with local URLs?

后端 未结 8 1294
粉色の甜心
粉色の甜心 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:30

    You can edit the hosts file on windows or linux Windows : C:\Windows\System32\Drivers\etc\hosts Linux : /etc/hosts

    localhost name resolution is handled within DNS itself.

    127.0.0.1 mywebsite.com

    after you finish your tests you just comment the line you add to disable it

    127.0.0.1 mywebsite.com

提交回复
热议问题