-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Include in Report" functionality is blocked by CORS policy (services.clarity-h2020.eu) #50
Comments
seems to work now? |
Where is the access done from? do you have an URL? IMHO, when CORS errors happens they are because there is an access to a different server from the one providing the website. Are you using react right? |
Usually this is solved by adding the CORS headers which are:
I am not sure how exactly do it but it should be something similar to this:
With the * you are allowing any other server, but you can state specific ones (services.clarity-h2020.eu:8080 in our case) |
Mmmmh I am checking buy maybe also Geoserver can include CORS policy to allow request from CSIS... |
I included such CORS policy in our Tomcat configuration, give it a try please and let me know if anything improved. |
Thank you, now the wms response contains the Access-Control-Allow-Origin header and the "Include in Report" button is working for this wms. So I can close this issue |
I have added a "best practice describing how to do this. |
The Access-Control-Allow-Origin header is not set again. See also here. |
What is the status? This is also related to #66 |
It should be already solved, did you checked? |
No, this is not solved, yet. But perhaps this will be solved, when the new geoserver is used. |
Yes. I assume that all layer will be served from https://geoserver.myclimateservice.eu/ |
@therter did you check the screenshot functionality with the new geo server? Can we close this issue? |
Yes, I have checked this and it works |
Please add the Access-Control-Allow-Origin header to the wms (http://services.clarity-h2020.eu:8080/geoserver/clarity/ows?service=WMS&version=1.0.0&request=GetCapabilities), because at the moment we get the following error, when an image of a map with overlay layers from this wms will be created.
No Access-Control-Allow-Origin' header is present on the requested resource
Perhaps, this comment can help you
The text was updated successfully, but these errors were encountered: