[ 
https://issues.apache.org/jira/browse/CB-12555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Soumakian updated CB-12555:
---------------------------------
    Description: 
I have two cordova apps that I would like to host from the same domain that are 
being built with the corvoda-browser plugin.  This should be fixed by setting 
the base href for each app, however, cordova does not abide by this base href 
when making an XHR request for config.xml.  This is affecting the usage of the 
SplashScreen plugin and any other plugin making use of the 
'cordova/confighelper' module.

The 'cordova/confighelper' module uses the following line of code to get the 
config.xml:

xhr.open("get", "/config.xml", true);

This call fails when the app is not hosted from the root folder.  The base href 
should be used to figure out the relative path to the file.

  was:
I have two cordova apps that I would like to host from the same domain.  This 
should be fixed by setting the base href for each app, however, cordova does 
not abide by this base href when making an XHR request for config.xml.  This is 
affecting the usage of the SplashScreen plugin and any other plugin making use 
of the 'cordova/confighelper' module.

The 'cordova/confighelper' module uses the following line of code to get the 
config.xml:

xhr.open("get", "/config.xml", true);

This call fails when the app is not hosted from the root folder.  The base href 
should be used to figure out the relative path to the file.


> Host multiple cordova apps from same domain
> -------------------------------------------
>
>                 Key: CB-12555
>                 URL: https://issues.apache.org/jira/browse/CB-12555
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Browser, Plugin SplashScreen
>            Reporter: Brian Soumakian
>
> I have two cordova apps that I would like to host from the same domain that 
> are being built with the corvoda-browser plugin.  This should be fixed by 
> setting the base href for each app, however, cordova does not abide by this 
> base href when making an XHR request for config.xml.  This is affecting the 
> usage of the SplashScreen plugin and any other plugin making use of the 
> 'cordova/confighelper' module.
> The 'cordova/confighelper' module uses the following line of code to get the 
> config.xml:
> xhr.open("get", "/config.xml", true);
> This call fails when the app is not hosted from the root folder.  The base 
> href should be used to figure out the relative path to the file.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to