Updated Branches: refs/heads/develop a498744d8 -> 83cd5adb6
fixed cors setup at the webapp artifact Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/13c2daf8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/13c2daf8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/13c2daf8 Branch: refs/heads/develop Commit: 13c2daf83f7ae7ba710b02a60779e75de1edd045 Parents: 61f72cb Author: Sergio Fernández <[email protected]> Authored: Wed Apr 10 13:43:22 2013 +0200 Committer: Jakob Frank <[email protected]> Committed: Thu Apr 11 08:40:51 2013 +0200 ---------------------------------------------------------------------- .../src/main/webapp/WEB-INF/web.xml | 9 +++++---- .../src/main/webapp/WEB-INF/web.xml | 12 ------------ 2 files changed, 5 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/13c2daf8/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml index 3496f74..a44d704 100644 --- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -62,13 +62,14 @@ <url-pattern>/*</url-pattern> </filter-mapping> - <!-- handle OPTIONS requests --> + <!-- enables a cors filter and maps it to any request --> + <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html --> <filter> - <filter-name>MarmottaOptionsFilter</filter-name> - <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter</filter-class> + <filter-name>CORS</filter-name> + <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> </filter> <filter-mapping> - <filter-name>MarmottaOptionsFilter</filter-name> + <filter-name>CORS</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/13c2daf8/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml index 7eb98a3..465a199 100644 --- a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml +++ b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml @@ -59,18 +59,6 @@ <url-pattern>/*</url-pattern> </filter-mapping> - <!-- handle OPTIONS requests --> - <!-- - <filter> - <filter-name>MarmottaOptionsFilter</filter-name> - <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter</filter-class> - </filter> - <filter-mapping> - <filter-name>MarmottaOptionsFilter</filter-name> - <url-pattern>/*</url-pattern> - </filter-mapping> - --> - <!-- enables a cors filter and maps it to any request --> <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html --> <filter>
