1

I posted this question How to access geoserver web services on a backend server through openlayers web application hosted on another server via IIS? and @IanT helped me to expose our web services running on a backend server so they load when logging into our openlayers web app. When you first load the app, you must supply your domain credentials and then the site and services load. However, there is a tool in the app that makes wfs requests to the geoserver, and these requests are getting blocked and I am getting the 401 unauthorized message in the console.

How can I authenticate these requests being made from the application?

Our web app is running on IIS and the credentials being supplied are windows domain credentials.

0

Turns out I just needed to make a modification to the fetch request in the code to include credentials, as shown on this site:

https://developers.google.com/web/updates/2015/03/introduction-to-fetch

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.