{"id":118,"date":"2015-09-23T07:38:17","date_gmt":"2015-09-23T07:38:17","guid":{"rendered":"https:\/\/jongarrido.es\/?p=118"},"modified":"2015-09-23T07:38:17","modified_gmt":"2015-09-23T07:38:17","slug":"enable-jsonp-request-in-geoserver","status":"publish","type":"post","link":"https:\/\/jongarrido.es\/?p=118","title":{"rendered":"Enable jsonp request in geoserver"},"content":{"rendered":"<p>Hi,<\/p>\n<p>In order to access wfs services through jsonp call you&#8217;ll need to enable this elemnt in your java server. In my case tomcat 7 in a ubuntu 14.04 server.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>Access to your server and edit web.xml file of your geoserver webapp..<\/p>\n<p>&nbsp;<\/p>\n<p><code>#vi \/var\/lib\/tomcat7\/webapps\/geoserver\/WEB-INF\/web.xml<\/code><\/p>\n<p>Add the next filter in the context parameters part of the document&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>(press insert key in vi editor)<\/p>\n<p>&nbsp;<\/p>\n<p><code><br \/>\n<context-param>\n    <param-name>ENABLE_JSONP<\/param-name>\n    <param-value>true<\/param-value>\n<\/context-param><br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Save the documement (press \u00ab:\u00bb and type \u00abwq\u00bb).<\/p>\n<p>&nbsp;<\/p>\n<p>And restart tomcat.<\/p>\n<p>&nbsp;<\/p>\n<p><code>\/etc\/init.d\/tomcat7 restart<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>That&#8217;s all<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, In order to access wfs services through jsonp call you&#8217;ll need to enable this elemnt in your java server. In my case tomcat 7 in a ubuntu 14.04 server.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,12,26,27,28],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-geoserver","tag-jsonp","tag-tomcat","tag-ubuntu","tag-wfs"],"_links":{"self":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118"}],"version-history":[{"count":0,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}