File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function __construct(
47
47
*/
48
48
protected function getOriginUrl ()
49
49
{
50
- return $ this ->scopeConfig ->getValue ('corsRequests/general /origin_url ' ,
50
+ return $ this ->scopeConfig ->getValue ('web/corsRequests /origin_url ' ,
51
51
\Magento \Store \Model \ScopeInterface::SCOPE_STORE );
52
52
}
53
53
@@ -57,7 +57,7 @@ protected function getOriginUrl()
57
57
*/
58
58
protected function getAllowCredentials ()
59
59
{
60
- return (bool ) $ this ->scopeConfig ->getValue ('corsRequests/general /allow_credentials ' ,
60
+ return (bool ) $ this ->scopeConfig ->getValue ('web/corsRequests /allow_credentials ' ,
61
61
\Magento \Store \Model \ScopeInterface::SCOPE_STORE );
62
62
}
63
63
Original file line number Diff line number Diff line change 2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Store:etc/config.xsd" >
4
4
<default >
5
- <corsRequests >
6
- <general >
5
+ <web >
6
+ <corsRequests >
7
7
<origin_url >*</origin_url >
8
8
<allow_credentials >0</allow_credentials >
9
- </general >
10
- </corsRequests >
9
+ </corsRequests >
10
+ </web >
11
11
</default >
12
12
</config >
You can’t perform that action at this time.
0 commit comments