Google API - How to redirect URL to my localhost

后端 未结 2 1986
故里飘歌
故里飘歌 2021-01-01 02:53

I am working on integrating google login in my Phonegap app using Google OAuth. What happens is that while creating a client ID for my app, I have to choose \"Installed Appl

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 03:24

    You can use Rewrite Rules too.

    For example, I need this callback for Google : http://local.dev/users/login-google

    So I have set this URL in Google Console : http://localhost/JUMP/local.dev/users/login-google

    And in apache, a simple redirect :

    RewriteEngine  on
    RewriteRule    ^JUMP/(.+)$   http://$1 [R,L]
    

提交回复
热议问题