Announcement Announcement Module
No announcement yet.
Cross-domain policy file and dm server Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cross-domain policy file and dm server

    I am trying to configure my dm server to provide a master cross-domain policy for the applications' Flash content. According to I can do 1 of 2 things:

    1) Setup a master policy file at http://<dm server ip: port>/crossdomain.xml
    2) or set header HTTP responses with a X-Permitted-Cross-Domain-Policies attributes.

    Looking at the Spring dm server documentation, I don't see how to do either.
    Any help would be appreciated, thanks!


  • #2
    Can you figure out how to do that with standard Tomcat? If so, then mapping to dm Server should be straightforward.


    • #3
      > Can you figure out how to do that with standard Tomcat?

      Yes, standard Tomcat just requires crossdomain.xml to be at the Catelina server root directory... I have been trying to figure out how this maps to the dmServer by trying a few things but I can't find what is the equivalent of the server root!
      (Tomcat gets deployed as an osgi component)


      • #4
        The file in question is just a static file. Deploy it the same way you would for any other static content to be served from the root context. (In Tomcat that would be deployed as ROOT.war.)

        Perhaps the simplest way to achieve that is to create a bundle which is a fragment of the dm Server splash screen. To be a fragment, your bundle simply needs to specify the fragment-host header - see the OSGi core specification for details - and point it at the splash screen bundle as the host.