More CURL headers

This commit is contained in:
aunefyren 2022-01-18 09:24:45 +01:00
parent 419f1c9817
commit 19bc601a72

View file

@ -49,7 +49,8 @@ class Auth {
);
$headers = [
"accept: $this->header"
"Accept: $this->header",
'Referer: https://' . $this->application_url . '/wrapped/index.html'
];
if($this->application_url !== '') {
@ -126,7 +127,8 @@ class Auth {
);
$headers = [
"accept: $this->header"
"Accept: $this->header",
'Referer: https://' . $this->application_url . '/wrapped/index.html'
];
if($this->application_url !== '') {
@ -237,11 +239,12 @@ class Auth {
);
$headers = [
"accept: $this->header"
"Accept: " . $this->header,
'Referer: https://' . $this->application_url . '/wrapped/index.html'
];
if($this->application_url !== '') {
array_push($headers, "Host: $this->application_url");
array_push($headers, "Host: " . $this->application_url);
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);