On 11/4/21 8:34 PM, br...@frogmouth.net wrote:
> Exactly what have you done to enable the filters? Can you show the headers 
> for the two different calls (not debugger, but actual output, say from wget).

I followed the manual:

https://docs.geoserver.org/latest/en/user/production/container.html#enable-cors

I uncommented the suggested filters from web.xml
I left url-pattern = *

The following is not from wget but from the raw output of the debugger:

xhr OPTIONS request:

OPTIONS /geoserver/wps HTTP/1.1
Host: mysite2:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101
Firefox/84.0
Accept: */*
Accept-Language: it,en-GB;q=0.8,en;q=0.5,en-US;q=0.3
Accept-Encoding: gzip, deflate
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-type
Referer: http://mysite/mypage
Origin: http://mysite
DNT: 1
Connection: keep-alive
Cache-Control: max-age=0

Response:

HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Content-Type: text/plain
Content-Length: 0
Date: Thu, 04 Nov 2021 21:53:15 GMT

This call is followed (it is listed in the debugger after the previous
one) by the following:

jquery xhr POST request:

POST /geoserver/wps undefined
Host: mysite2:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101
Firefox/84.0
Accept: application/xml, text/xml, */*; q=0.01
Accept-Language: it,en-GB;q=0.8,en;q=0.5,en-US;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: text/xml
Content-Length: 1470
Origin: http://mysite
DNT: 1
Connection: keep-alive
Referer: http://mysite/mypage

If that is not useful I'll try with wget.

        maxx


_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to