mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
More CURL headers
This commit is contained in:
parent
419f1c9817
commit
19bc601a72
1 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue