This question already has an answer here:
I'm doing tests to query layers in Leaflet with WMS.
I'm seeing this
I'm trying to take WMS data from my Geoserver and replaced the WMS URL, the name of the layer, and the name of the fields in the popup window but I have a problem: I see the layers in the map, but it does not make me select, and I do not see the fields in the popup.
Do I need to change some settings in my Geoserver?