HTTP 401 is unauthorized:
The request requires user authentication.
Which makes sense: The magnoliaAuthor instance always needs a username and password so you can login, since it is the instance where editors work.
What you need is sending magnoliaAuthor a username and password. My research has shown that Magnolia uses two login-filters, placed in /server/filters/login/loginHandlers
:
- One handles HTTP basic authentication
- The other handles the login with the Magnolia login-form
You can make use of the HTTP basic authentication and include your Magnolia page like:
<c:import url="http://username:password@example.com/magnoliaAuthor/app/test" />
Note: You wrote that you have no problems including /magnoliaAuthor/footer
. This means that your security configuration for accessing these two sites is different. You should consider checking this, usually you don't want any resource in magnoliaAuthor to be accessible without authorization.