Hi,

For "header ‘Access-Control-Allow-Origin’ missing",  confirm that the header is 
actually present.

Also try with * instead of a specific domain to see if it works. You'll be able 
to set/find a specific value afterwards.

Hope this helps. Good luck !


Envoyé à partir d’Outlook<http://aka.ms/weboutlook>

________________________________
De : emmexx <emm...@tiscalinet.it>
Envoyé : 4 novembre 2021 12:13
À : geoserver-users@lists.sourceforge.net 
<geoserver-users@lists.sourceforge.net>
Objet : [Geoserver-users] WPS and CORS

In one web application I use a call to WPS. The call worked ok on an old
instance of geoserver 2.8.1 where I had added an external library file
and some configuration in web.xml.

On a test server I'm using 2.19.0 where, from my understanding, CORS is
already there and you only need to enable the filters in web.xml.

I enabled the filters and restarted tomcat and I suppose CORS is working
(a ows call that gave a cors error before enabling the filters is now
working). But the calls to wps give a Cors error:

(Firefox debugger output)

XHR OPTIONS http://vmysite:8080/geoserver/wps CORS Missing Allow Origin

Cross-Origin Request Blocked: The Same Origin Policy disallows reading
the remote resource at http://mysite:8080/geoserver/wps. (Reason: CORS
header ‘Access-Control-Allow-Origin’ missing).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading
the remote resource at http://mysite:8080/geoserver/wps. (Reason: CORS
request did not succeed).

What can I check to solve the problem?

Thank you
        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
_______________________________________________
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