Hi Guys, need help. I try add GeoServer wms layer on my webmap. It was working good about few days ago, but now i get error: Access to fetch at 'http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities' from origin 'http://10.0.124.10' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. (See PIC)
I use standard code to add layer:
const registrirebuli_nakvetebi = new WMSLayer({
url: "http://nv1.reestri.gov.ge/geoserver/wms",
title: "xyz",
visible: true,
sublayers: [
{
name: "LR_PARCELS"
}
]
});
map.add(registrirebuli_nakvetebi)
How can i handle this? Geoserver is not on my hand, so i can not enable/disable CORS.