Issue with navigate to more than one domain within the same app

We would like to create an application for Excel, starting page of which redirects user to other domains (we have separate domain for each customer).
We followed the instructions described here: https://msdn.microsoft.com/en-us/library/office/jj715716.aspx?ppud=4
But they helped us only for Desktop version of Excel, in Excel Online we have problems with conversationId.
If during redirect we keep only window.location.search - exception about null conversationId appears. 
If during redirect we pass window.location.search and window.location.hash - we have error during call to ContextActivationManager_getAppContextAsync with message 'Failed origin check'.
Manifest example:
<?xml version="1.0" encoding="utf-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ContentApp">
<Id>01eac144-e75a-45a7-b6d7-f1cc60ab0129</Id>
<Version>1.0.0.0</Version>
<ProviderName>XYZ</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="XYZ Excel app" />
<Description DefaultValue="XYZ Excel app" />
<AppDomains>
<AppDomain>https://a.xyz.net</AppDomain>
<AppDomain>https://b.xyz.net</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Workbook" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://xyz.net/index.html" />
<RequestedWidth>400</RequestedWidth>
<RequestedHeight>300</RequestedHeight>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<AllowSnapshot>false</AllowSnapshot>
</OfficeApp>

Hi Edward,
Thank you very much for your response.
Main problem is that after redirect we will be on the page, that wants to behave like app for Office and have access to Office JS api. But initialization of Office JS api fails.
Here is sample code, used bubbles application as example:
<html>
<head>
<title>Redirect test</title>
<script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.debug.js" type="text/javascript"></script>
<script type="text/javascript">
Office.initialize = function (reason) {
console.log('Office.initialize called');
var APP_URL = "https://bubbles.azurewebsites.net";
function redirect() {
performRedirect(APP_URL);
function redirectWithSearch() {
performRedirect(APP_URL + window.location.search);
function redirectWithHash() {
performRedirect(APP_URL + window.location.search + window.location.hash);
function performRedirect(url) {
console.log('url = ' + url);
window.location.href = url;
</script>
</head>
<body>
<button type="button" onclick="redirect()">Redirect to bubbles app</button>
<br/>
<button type="button" onclick="redirectWithSearch()">Redirect to bubbles app with search</button>
<br/>
<button type="button" onclick="redirectWithHash()">Redirect to bubbles app with search and hash</button>
</body>
</html>
Beat regards,
Mary

Similar Messages

  • More than one domain in the same library?

    I use two Macs. In one I use iWeb to maintain two blogs and in the other I use iWeb to maintain two sites. I am giving one of the Macs to one of my sons and would like to use one Mac to work with both domains. Can I copy both domains to the same iWeb application support folder or will one copy over the other and destroy it? Will the same folder hold two Domain files or do I need to rename one of them? Thanks!

    To add to Roddy's post I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process and move it to another location on your HD until you're satisfied the separation process is completed and what you want.
    This lets me edit several sites and only republish the one I want.
    OT

  • Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes? Both my daughters have ipods, my wife has one

    Dear All
    Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes. My daughters have a different generation 'nano' each & my wife a 'shuffle'?
    Many thanks

    Click here for options.
    (69081)

  • More than one library (on the same computer) open?

    In the new iTunes 9 it is possible to access several libraries on my home network from the open iTunes window, which is really cool. I wondered if this means it may now be possible to have access to several libraries on the same computer (or connected drives) at the same time. I use 3 different libraries on my work PC and my mac at home and the process of shutting down iTunes, holding down shift/option, reopening itunes, selecting library is rather cumbersome. Having each of the libraries accessible the same way they are for other libraries on the network would be really useful.
    Is it possible?

    pajagsfan wrote:
    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)
    I know it's Valentine's Day, but before you get your wife fixed up the first thing you need to do is recover the deleted albums for your own library.  See if the files are elsewhere on your hard drive, or in the Recycle Bin.  When you find them, get them back into your own library.  Now you are ready to help your wife.
    As noted above, you can have two libraries in one Windows user account via the Shift-Start approach, but if you both use your libraries regularly, that becomes annoying quickly.  It is better to set her up with her own Windows user account. She can have her own iTunes library there.
    Get a copy of your entire iTunes folder to start her off.  She can delete stuff she doesn't want without messing you up.

  • Can i create more than one library on the same computer?

    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)

    pajagsfan wrote:
    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)
    I know it's Valentine's Day, but before you get your wife fixed up the first thing you need to do is recover the deleted albums for your own library.  See if the files are elsewhere on your hard drive, or in the Recycle Bin.  When you find them, get them back into your own library.  Now you are ready to help your wife.
    As noted above, you can have two libraries in one Windows user account via the Shift-Start approach, but if you both use your libraries regularly, that becomes annoying quickly.  It is better to set her up with her own Windows user account. She can have her own iTunes library there.
    Get a copy of your entire iTunes folder to start her off.  She can delete stuff she doesn't want without messing you up.

  • Can I sync more than one iPhone to the same computer?

    Can I sync more than one iPhone to the same computer?
    I have one MacBook pro, already have my iPhone synced to it. I want to sync my wife's to it as well so she can share my iTunes library.
    Is this possible?

    Create a new user login (with a password) for your stuff.
    This way, your data won't get mixed up.

  • HT1719 Can more than one device access the same ITunes library?

    Can more than one device acess the same ITunes library?  And if so, does each device's list of songs remain separate and distinct for each device?

    No problems whatsoever. I have 3 iPhones and 3 iPod touches with different IOS connected.

  • Jquery accordion where we can open more than one region at the same time

    Hi,
    I am trying to create a jquery accordion where we can open more than one region at the same time. I saw a post
    from patrick to do accordion where we can select only one region at a time.I am using Apex 4.0
    Using jQueryUI Accordion with APEX 4.0
    Any input on this will be appreciated.
    Thanks,
    Nav

    Hi,
    As I understand jQuery UI accordion do not have feature you looking for
    Regards,
    Jari
    Edited by: jarola on Sep 7, 2010 12:29 PM
    See documentation from here
    http://jqueryui.com/demos/accordion/#default

  • Add Suppporting Details for more than one periods at the same time for the same Account in Planning.

    As we know, in planning form, we can add supporting details to one cell for the level 0 members intersections.
    But can we do that as below:
    add supporting details for more than one cells at the same time?
    I tried to do that in workspace and smartview, neither is working.(my workspace version 11.1.2.2.300.20)
    I wonder if i am not with the right version, because i don't know how to get the below.
    Can any one explain?
    Thank you.

    Hi,
    I have tried in Smartview for a simple form where my period dimension was in columns and accounts in rows.
    You need to select multiple period and select supporting details, it will show those selected period for which you can add the supporting details.
    You can add these details and then submit the data in the form.
    Regards,
    Sourabh

  • Insert more than one contact in the same page/document

    Hello,
    I have tried without success to insert more than one contact into the same page of a document.
    For example, if i insert 2 Address book fields in a page, when i drag a contact from the address book then it populates automatically the 2 fields, and it is impossible to separate these fields and to populate them with 2 different entries (on the same page).
    And when you drag more than one contact to Pages, it asks you if you want to create one document per contact.
    Would it be possible to just insert 2 or more different contacts on the same page/document ?
    Thanks in advance for any help,
    Fred.

    Unfortunately, this can't be done with Pages, nor could it be done with AppleWorks. I think the assumption is that you would merge into a letter & one letter sent per person. In checking the 3 postcard templates in Pages 3, none of them have address book fields to drop contacts into.
    There is a workaround, but it might not be worth the effort. Create your postcard as a single, large document in page layout in landscape & merge to a new document. Then, in the print dialog, choose Layout from the drop-down menu that says Copies & Pages & choose 4 from the Pages per Sheet menu. You might also want to add a hairline border for cut lines.

  • Is it possible to install Lightroom 4.1 on more than one computer using the same product code?

    is it possible to install Lightroom 4.1 on more than one computer using the same product code?

    Yes, your license key is cross platform PC & or Mac you are allowed to have two current installations with one in use at any point in time. You can uninstall / install as many times as is necessary so long as you adhere to the limits.

  • More than one shuttle in the same page

    Is it possible to have more than one shuttle in the same page. I've tried to create to regions with one shuttle in each. I have choosen the shuttle item from Apex
    Is it a way to unique reference/rename the shuttles. Now it seems like both the shuttles have the same reference when I try to select values.

    Is it a way to unique reference/rename the shuttles
    Well, each shuttle item will have its own item name, right? P1_SHUTTLE1, P1_SHUTTLE2, etc. Not sure I understand what you mean.

  • How do you attach/email more than one document from the pages app?

    How do you send more than one document from the pages app on an iPad?

    This is entirely frustrating and I have yet to find an answer for this question even though people have been asking it on the internet for over a year!
    I am relatively new to apple and I was considering staying with them for my next iphone because of my apps, but after paying for this app and discovering I can't email more than one document "page" at a time? This makes no sense. Please fix this apple, I'd like to say you have replaced my tablet PC for home-office work but now I am reconsidering...

  • Is there a way to put an item under more than one calendar at the same time?

    I use the calendar to keep track of not only my schedule, but my entire family's. For years I had a calendar labeled 'kids.' Now as they're getting older it would be easier to have an individual calendar for each child. Easier for me to track where they are and they could have they're own calendar on their iphone or iphone touch since we all share one cloud account. However, frequently more than one is at the same activity. The calendar program will only allow me to select one calendar to place an event under; as soon as I select another, it deselects the first. Is there a way to place an event under more than one calendar?
    (Since I'm still the one driving that needs to know date, time, place, etc type details I don't want them adding it to their own schedule - maybe -  on their devides and synching through cloud)

    You can create many calendars. Here's the tip:
    Example: you have 1 son and 1 daughter.
    In iCloud ( https://www.icloud.com )
    Create 1 calendar called Son ( Choose a color to tell them apart )
    Create 1 calendar called Daughter ( Ditto )
    Create 1 calendar called Kids
    Since you are the creator, you get to see all calendars combined.
    Send invitations to each of them
    Son gets Son and Kids calendars
    Daughter gets Daughter and Kids calendars
    So if there an event for Son, just put in that calendar
    If it's for both then enter it in the Kids calendar
    Likewise for daughter.

  • Drill down more than one characteristic at the same time.

    Hi,
    Is there any way to drill down more than one characteristic at the same time?
    When I drill down by 0cust_sales I would like to have drilled down: division/distrchan/salesorg/cust_sales without having to do that one by one.
    thank you!

    Hi,
    This cannot be done unless these characterstics are related to each other in some way as Charactertics & Display Attributes.
    The reason being when you drill down the 0cust_sales , there is no link from 0Cust_sales to the other characterstics hence there is no prompt for these characterstics to be drilled down.
    However, a smiliar thing might be acheived by adding these chareacterstics into the 0cust_sales in teh query designer by dragging n dropping them over 0cust_sales. you can try this and see if this is close to your requiremetn.
    Kind Regards,
    Tapish

Maybe you are looking for

  • Key mapping problem for web forms !!!

    Hi all, I have implemented forms 6 on the web using OAS 4.0.7 on WinNT SP 3 workstation. I have modified FMRWEB.RES file for activating F9 - LOV. We have a customized toolbar for our application. There are also shortcut keys defined for the same. For

  • Need to Re-activate CS4 after upgrade from Vista to Windows 7 (32 bit)

    I have a laptop running Vista 32-bit with Lightroom 2.7 and Photoshop CS4 installed.  I'm planning to upgrade the computer from Vista 32-bit to Windows 7 32-bit, upgrading in place to avoid having to reformat and reinstall all the software.  Will Pho

  • VisualVM can't see monitor tab or app mbeans after move to new VMWare VM

    I've had a Spring 3.x application running on Solaris (5.10) in a VMWare VM for quite a while. My application registers some mbeans. I've been able to connect remotely to the VM from VisualVM and view data in the "Monitor" tab, and I've been able to s

  • Cannot create a Sun Java Studio Creator project

    After successfully installing Sun Studio Creator on a machine running Fedora Core 7 I find that I am unable to create a JSF Web Application. Studio Creator will create an initial project in the home/john/Creator subdirectory and then create a project

  • Safari 4 for Windows hangs as soon as I type anything in a web page

    I've got the latest release of Safari 4 for Windows installed on my Windows XP laptop. Unfortunately it's unusable due to a problem where the browser hangs/locks up as soon as I start to enter any data on a web form, e.g. www.google.co.uk, I can type