Skip to content

Commit e82cca4

Browse files
#28561: GraphQL added CORS headers (static test fix)
1 parent c3def13 commit e82cca4

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

app/code/Magento/GraphQl/Controller/HttpResponse/Cors/CorsAllowMethodsHeaderProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class CorsAllowMethodsHeaderProvider implements HeaderProviderInterface
2424
*/
2525
private $corsConfiguration;
2626

27+
/**
28+
* @param ConfigurationInterface $corsConfiguration
29+
* @param string $headerName
30+
*/
2731
public function __construct(
2832
ConfigurationInterface $corsConfiguration,
2933
string $headerName

app/code/Magento/GraphQl/Controller/HttpResponse/Cors/CorsAllowOriginHeaderProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class CorsAllowOriginHeaderProvider implements HeaderProviderInterface
2424
*/
2525
private $corsConfiguration;
2626

27+
/**
28+
* @param ConfigurationInterface $corsConfiguration
29+
* @param string $headerName
30+
*/
2731
public function __construct(
2832
ConfigurationInterface $corsConfiguration,
2933
string $headerName

app/code/Magento/GraphQl/Controller/HttpResponse/Cors/CorsMaxAgeHeaderProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class CorsMaxAgeHeaderProvider implements HeaderProviderInterface
2424
*/
2525
private $corsConfiguration;
2626

27+
/**
28+
* @param ConfigurationInterface $corsConfiguration
29+
* @param string $headerName
30+
*/
2731
public function __construct(
2832
ConfigurationInterface $corsConfiguration,
2933
string $headerName

0 commit comments

Comments
 (0)