Last active
January 14, 2019 21:52
-
-
Save dbaston/1806a5b97e51f7a90fdb3f7c35ddd08b to your computer and use it in GitHub Desktop.
Revisions
-
dbaston revised this gist
Jan 14, 2019 . 1 changed file with 8 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ xmlstarlet ed --inplace -P \ -s "//web-app" -t elem -n TEMPNODE -v "" \ -s "//TEMPNODE" -t elem -n "filter-name" -v "cross-origin" \ -s "//TEMPNODE" -t elem -n "filter-class" -v "org.eclipse.jetty.servlets.CrossOriginFilter" \ -r "//TEMPNODE" -v "filter" \ -s "//web-app" -t elem -n TEMPNODE -v "" \ -s "//TEMPNODE" -t elem -n "filter-mapping" \ -s "//TEMPNODE" -t elem -n "filter-name" -v "cross-origin" \ -s "//TEMPNODE" -t elem -n "url-pattern" -v "/*" \ -r "//TEMPNODE" -v "filter-mapping" \ $GEOSERVER_HOME/webapps/geoserver/WEB-INF/web.xml -
dbaston created this gist
Mar 28, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # enable CORS xmlstarlet ed --inplace -P \ -s "//TEMPNODE" -t elem -n "filter" \ -s "//TEMPNODE/filter" -t elem -n "filter-name" -v "cross-origin" \ -s "//TEMPNODE/filter" -t elem -n "filter-class" -v "org.eclipse.jetty.servlets.CrossOriginFilter" \ -s "//TEMPNODE" -t elem -n "filter-mapping" \ -s "//TEMPNODE/filter-mapping" -t elem -n "filter-name" -v "cross-origin" \ -s "//TEMPNODE/filter-mapping" -t elem -n "url-pattern" -v "/*" \ -r "//TEMPNODE" -v "filter" \ $GEOSERVER_HOME/webapps/geoserver/WEB-INF/web.xml