We will be off on April 7th (Monday) for public holiday in our country

Commit 861b7dd5 authored by attilak's avatar attilak

Add separate port support for origin key retrieval

parent 14062302
......@@ -1484,6 +1484,9 @@ class Data extends AbstractHelper
$baseUrl = $this->storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB);
$parsed = parse_url($baseUrl);
$origin = $parsed['scheme'] . "://" . $parsed['host'];
if (!empty($parsed['port'])) {
$origin .= ":" . $parsed['port'];
}
return $origin;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment