diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js
index e027a155f7e..01250e37914 100644
--- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js
+++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js
@@ -79,9 +79,10 @@ class App extends React.Component {
getAndroidEnterpriseToken = (config) => {
axios.get(
- window.location.origin + config.serverConfig.invoker.uri + "/device-mgt/android/v1.0/enterprise/store-url?approveApps=true" +
+ window.location.origin + config.serverConfig.invoker.uri +
+ "/device-mgt/android/v1.0/enterprise/store-url?approveApps=true" +
"&searchEnabled=true&isPrivateAppsEnabled=true&isWebAppEnabled=true&isOrganizeAppPageVisible=true&isManagedConfigEnabled=true" +
- "&host=https://localhost:9443",
+ "&host=" + window.location.origin,
).then(res => {
config.androidEnterpriseToken = res.data.data.token;
this.setState({
diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js
index 7b453a4098a..335e1c46ddb 100644
--- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js
+++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/AppDetailsDrawer/AppDetailsDrawer.js
@@ -72,7 +72,7 @@ const formats = [
class AppDetailsDrawer extends React.Component {
constructor(props) {
super(props);
- const drawerWidth = window.innerWidth<=770 ? '80%' : '40%';
+ const drawerWidth = window.innerWidth <= 770 ? '80%' : '40%';
this.state = {
loading: false,
@@ -460,7 +460,9 @@ class AppDetailsDrawer extends React.Component {