Comments (4)
Hello, for me what worked was a few extra init-params, in /usr/local/tomcat/conf/web.xml
as follows:
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.headers</param-name>
<param-value>If-Mofidied-Since,Range,Origin</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
from docker-geoserver.
Took me a while to figure out what exactly needed to be added based on your edited comment. Here it is in case anyone else looking at this is as clueless as me 😀
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
from docker-geoserver.
Oops sorry about it being unclear, the formatting must have messed up when I pasted my code. Thanks for making it more clear!
from docker-geoserver.
This solved my problem!
However, I still get these console errors:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8600/geoserver/test/wms?bbox=-672645.8489095494,4263351.689633992,-670199.8640044257,4265797.674539115&format=image/png&CRS=EPSG:3857&service=WMS&version=1.3&request=GetMap&srs=EPSG:3857&transparent=true&width=256&height=256&layers=test:T1. (Reason: CORS request did not succeed).[Learn More]
Can this be a feature implementation?
from docker-geoserver.
Related Issues (20)
- GeoServer Pod Restart Failure with Thread Local Errors in Kubernetes Environment HOT 1
- Not possible anymore to run as non-root HOT 12
- roles.xml & roles.xml.orig down to 0 bytes HOT 1
- Geoserver Cluster on AWS ECS not working HOT 9
- Dockerfile STABLE_EXTENSION gdal error ->Plugin URL does not exist:: https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.1/extensions/geoserver-2.24.1-gdal.zip HOT 1
- gdal stable extension support needed. HOT 5
- random start-up crash HOT 1
- XFRAME_OPTIONS does not work as expected. HOT 1
- [geoserver.monitor] - Request Dumper exiting due to :Permission denied
- crash at start on arm64 HOT 1
- After crashing I couldn't run again HOT 2
- Write a security policy / nominate security contacts HOT 5
- validate_url and download_extension request every URL twice, and don't re-use connections, making builds really slow HOT 3
- Update base image to new image HOT 4
- GWC error "Problem communicating with GeoServer" HOT 13
- Broken WMS due to libjpeg-turbo errors in 2.25.0 HOT 10
- Custom Vector Dimensions don't work in 2.25.0 HOT 2
- JDBCconfig and JDBCstore configuration settings via ENV variables HOT 15
- libjpegturbo broken in wms request HOT 1
- Clearing users.xml while creating user HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-geoserver.