File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1414
1515final class Client
1616{
17+ public const HEADER_CONTENT_TYPE = 'application/json ' ;
18+
19+ public const HEADER_ORIGIN = 'https://store.playstation.com ' ;
20+
1721 public readonly RequestLocatorService $ requestServiceLocator ;
1822
1923 public function __construct (
@@ -76,16 +80,15 @@ public function getResponse(BaseRequest $request): ResponseInterface
7680 ),
7781 [
7882 'headers ' => [
79- 'x-psn-store-locale-override ' => $ this ->regionEnum ->value
83+ 'x-psn-store-locale-override ' => $ this ->regionEnum ->value ,
84+ 'content-type ' => self ::HEADER_CONTENT_TYPE ,
85+ 'origin ' => self ::HEADER_ORIGIN ,
8086 ],
8187 ]
8288 );
8389
8490 } catch (Exception |GuzzleException $ e ) {
8591
86- var_dump ($ e ->getMessage ());
87-
88- exit ();
8992 throw new ResponseException (
9093 $ request ,
9194 'An error occurred while trying to request ' ,
You can’t perform that action at this time.
0 commit comments