Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Using Sites with Orion

Not sure exactly what files you need, but you could access the orion server projects and files using the Orion plugin registry and the "orion.core.file" service. fileClient.js provides a convenience API to talk to a file system on another server via a plugin.

As for configuring the servlet filter, it happens via an Eclipse extension point on the server. The bundle org.eclipse.orion.server.configurator has a plugin.xml file that defines all the servlets. The syntax is a bit different from the web.xml on that wiki page, but here is an example of a filter we register that includes parameters that shows the pattern:

      <filter
            alias="/"
            class="org.eclipse.orion.server.configurator.servlet.WelcomeFileFilter">
         <init-param
               name="includes"
               value="/">
         </init-param>
      </filter>

John A



John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
Sent by: orion-dev-bounces@xxxxxxxxxxx

03/14/2012 12:45 PM

Please respond to
Orion developer discussions <orion-dev@xxxxxxxxxxx>

To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
Re: [orion-dev] Using Sites with Orion





Orion uses Jetty 8 and Jetty 8 supports CORS:
http://wiki.eclipse.org/Jetty/Feature/Cross_Origin_Filter

So in theory I could configure the jetty server to allow localhost as
well as 127.0.0.*,... if I knew how the jetty config worked in Orion.
Anyone know how?

Also in theory I could configure it to allow the login credential for
127.0.0.* to be sent with the request. The documentation on this seems
very limited however.

jjb

On Tue, Mar 13, 2012 at 4:44 PM, John J Barton
<johnjbarton@xxxxxxxxxxxxxxx> wrote:
> I am serving my web app out of an Orion site, it runs on
>
http://127.0.0.2:8080. But when it comes time to read Orion files, my
> XHR fails because the Orion files are on
http://localhost:8080, and
> that is interpreted as cross-origin.
>
> I guess I can put my app and the app I am debugging on the same Site,
> but that's a real hack.
>
> Other suggestions?
>
> jjb
> _______________________________________________
> orion-dev mailing list
> orion-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev



Back to the top