Results 1 to 4 of 4

Thread: Cross-domain policy file and dm server

  1. #1
    Join Date
    Apr 2010
    Posts
    3

    Default Cross-domain policy file and dm server

    Hello,
    I am trying to configure my dm server to provide a master cross-domain policy for the applications' Flash content. According to http://www.senocular.com/pub/adobe/c...licyfiles.html 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!

    --Laurent

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    Can you figure out how to do that with standard Tomcat? If so, then mapping to dm Server should be straightforward.
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    Apr 2010
    Posts
    3

    Default

    > 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. #4
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    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.
    Glyn Normington
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •