We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4c778 commit a0a4fa3Copy full SHA for a0a4fa3
www/osmapi.php
@@ -1,9 +1,10 @@
1
<?php
2
function oauth_make() {
3
+ $redirect = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
4
return new \JBelien\OAuth2\Client\Provider\OpenStreetMap([
5
'clientId' => CLIENT_ID,
6
'clientSecret' => CLIENT_SECRET,
- 'redirectUri' => 'http://127.0.0.1/level0/index.php?action=callback',
7
+ 'redirectUri' => $redirect.'?action=callback',
8
'dev' => strpos(OSM_API_URL, 'dev.openstreetmap') !== false
9
]);
10
}
0 commit comments