cancel
Showing results for 
Search instead for 
Did you mean: 

XS Web Server - can I make file "crossdomain.xml" available in the root of the XS server?

kevin_small
Active Participant
0 Kudos

I want to make an XML file available in the root of my XS server.  Specifically, I'd like to make a file called "crossdomain.xml" available here:

http://<myhanaserver>:8000/crossdomain.xml

I cannot do this by creating the file in HANA Studio and uploading it to the server in the usual way, because an XS project has to have a repository package.  If it has a repository package then that means it is no longer in the root of the domain.

Background

I want to connect up a product called Unity to my HANA system, and the Unity documentation says this is the approach I need to follow.  I know I can look into other options like anonymous logins and CORS, but I'd like to try out the "Unity way" first.

Thanks, Kevin.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It doesn't really appear that the repository will let you put something at the root anyway. I used the Web IDE, which doesn't require any projects) and tried both creating a file and dragging and dropping a file and neither is allowed to the root of the repository.  Only packages can be created at that level via the Web IDE. 

Answers (1)

Answers (1)

Vlad
Advisor
Advisor
0 Kudos

Hi Kevin,

Wow, you want to connect the game engine to HANA Can you write a blog post about your success?

Regarding your question, I do not know how to do exactly what you want. But, you can try to deploy the XML file to any XS folder and then configure your web dispatcher (or proxy server) to change interpret the XML link as if it is placed into the root.

By the way, I think it is insecure to use the direct connection from the application to HANA without a proxy or web dispatcher. So, sooner or later you have to install proxy.

Kind regards,
Vlad

kevin_small
Active Participant
0 Kudos

I take your point about the proxy, thanks Vlad.

Yes I am trying to connect Unity to HANA, with mixed results so far, but if I get anywhere yes I'll post results. Connecting up the two has been done before, some folks in the early days of HANA did a demo called Store Trek which was like a 3D shopping thing.   I am sure there are other interesting applications of a 3D frontend.

kevin_small
Active Participant
0 Kudos

Hi Vlad,

I did eventually get Unity working with HANA, used to provide a 3D "game" frontend to the SHINE demo content.  As requested, here is the blog about it.

I had hoped to use the Unity web player, hence my question above about the crossdomain.xml file.  Unfortunately I had too many issues with Unity's www calls when made from the webplayer, so I had to build it using Unity as a local client install.