summaryrefslogtreecommitdiff
path: root/oauth/callback
diff options
context:
space:
mode:
Diffstat (limited to 'oauth/callback')
-rw-r--r--oauth/callback/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/oauth/callback/index.php b/oauth/callback/index.php
index e879990..d65bced 100644
--- a/oauth/callback/index.php
+++ b/oauth/callback/index.php
@@ -1,5 +1,6 @@
<?php
+header("X-Frame-Options: DENY");
$app = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
$server = "account.equestria.dev";
@@ -18,7 +19,7 @@ curl_setopt($crl, CURLOPT_HTTPHEADER, [
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json"
]);
-curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode(($_SERVER['SERVER_PORT'] === "8043" ? "http://localhost:8043" : "https://wavy.equestria.horse") . "/oauth/callback") . "&code=" . $_GET['code']);
+curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode(($_SERVER['SERVER_PORT'] === "8043" ? "https://mist-testing.equestria.horse" : "https://mist.equestria.horse") . "/oauth/callback") . "&code=" . $_GET['code']);
$result = curl_exec($crl);
$result = json_decode($result, true);