I have a web application running on azure and using azure storage with blob. My application allows to edit html files that are in the azure storage to save with another name and publish them later. I am using javascript to edit the html content that I display in an Iframe but as the domain of my web application and the html that I try to edit are not the same, I got and this error "Unsafe JavaScript attempt to access frame with URL "URL1" from frame with URL "URL2". Domains, protocols and ports must match". I have been doing some research about it and the only way to make it work is to have the web application and the html that I want to access using javascript under the same domain.
So my question is: is it possible to have the same domain name in azure for the hosted service and the storage.
Like this:
hosted service: example.com
storage: example.com
By the way I already customize the domain names so they looks like this:
hosted service <mydomainname>.com
storage <blob.mydomainname>.com
Actually I have my application running in another hosting and I have no problem there since I have a folder where I am storing the files that I am editing so they are in the same domain as the application. I have been thinking in to do the same with Azure, at least to have a folder where I can store the html file meanwhile I am editing it but I am not sure how much space I have in the hosted service to store temporary files.
let me know if you have a good tip or idea about how to solve this issue.
- Edited by Rodrigo Sedano Tuesday, July 05, 2011 1:09 PM change title