X-Frame Options

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

X-Frame Options

Landratsamt AS (SG 11.2 - EDV - GIS)

Hello,

 

another viewer wants to display a wms from me. Unfortunately, the factual data does not work. Mozilla Firebug says:

"Load denied by X-Frame Options"

 

An adjustment in web.xml does not work:

 

<Filter-class> org.geoserver.filters.XFrameOptionsFilter </ filter-class>

        <Init-param>

             <Param-name> geoserver.xframe.policy </ param-name>

             <param-value> ALLOW-FROM https://example.com </ param-value>

         </ Init-param>

 

    </ Filter>

 

 

Many thanks for your help.

 

 

greeting

wolfgang

 



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: X-Frame Options

Arnaud L.
Hi Wolfgang

Le 25/01/2019 à 09:09, Landratsamt AS (SG 11.2 - GIS) a écrit :
> another viewer wants to display a wms from me. Unfortunately, the
> factual data does not work. Mozilla Firebug says:
>
> "Load denied by X-Frame Options"
>
> An adjustment in web.xml does not work:
I've had this problem some weeks ago, and the easy solution was to use
an environment variable.

The env variable should be named "geoserver.xframe.shouldSetPolicy" and
its value should be "false" (both without quotes of course).

You can find the discussion here :
https://sourceforge.net/p/geoserver/mailman/message/36468205/

Cheers

--
Arnaud


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users