We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ecf342 commit bf68a27Copy full SHA for bf68a27
1 file changed
lib/thingiverse.php
@@ -53,7 +53,10 @@ public static function get_authorization_token(){
53
//Returns a Json object
54
public static function get_authorized_url_json($url){
55
56
- $authorization_header = 'Authorization: Bearer '.Thingiverse::get_authorization_token();
+ $authorization_header = array(
57
+ 'Authorization: Bearer '.Thingiverse::get_authorization_token(),
58
+ 'Referer: '.Thingiverse::BASE_URL
59
+ );
60
$options = ['http' => ['header' => $authorization_header]];
61
$context = stream_context_create($options);
62
$json = file_get_contents($url, false, $context);
0 commit comments