Coder Social home page Coder Social logo

Comments (5)

patrickarlt avatar patrickarlt commented on June 1, 2024 1

Closing this. See my comment in #1378 (comment).

I will add here that there are reasons we do support this in ArcGIS REST JS but not in Esri Leaflet:

  1. ArcGIS REST JS can also be used outside a browser context which can hide the token in GET requests without the complexities of browser preflighting and CORS restrictions.
  2. ArcGIS REST JS generally isn't used to make the kinds of high volume high performance queries that need specific caching requirements like loading feature layers in viral applications that must use GET for caching reasons and can't have a performance hit for preflighting requests.

from esri-leaflet.

gavinr-maps avatar gavinr-maps commented on June 1, 2024

Hi @acass91, thank you for logging this issue.

Could you please give us some more information about your use case - why having this in the URL param is an issue for you? Note that HTTPS/SSL does secure GET URL params, but we understand that there are other reasons and situations that may be an issue for this, so we wanted to hear more about your particular case.

That all being said, I discussed this with @patrickarlt and we think the lower-level request module could be updated to support HTTP Header Auth, which should resolve your issue, but it might be a big change so may not have time right now. We would probably accept a PR to make HTTP Header Auth an option though if you'd like to take a crack at it!

Thanks!

from esri-leaflet.

acass91 avatar acass91 commented on June 1, 2024

Hi @gr-maps, my organization reported this to my team as a vulnerability from OWASP.

Truth be told, this isn't really an issue for me, but I am trying to justify not updating our application.

from esri-leaflet.

gavinr-maps avatar gavinr-maps commented on June 1, 2024

Ok, thank you for that context. In that case I think this is still applicable:

That all being said, I discussed this with @patrickarlt and we think the lower-level request module could be updated to support HTTP Header Auth, which should resolve your issue, but it might be a big change so may not have time right now. We would probably accept a PR to make HTTP Header Auth an option though if you'd like to take a crack at it!

Thanks!

from esri-leaflet.

BrunoCaimar avatar BrunoCaimar commented on June 1, 2024

I believe that this PR #1378 can fix this issue. I've tested using it with a FeatureLayer and a DynamicLayer.

This PR solution is similar to the approach that ArcGIS REST JS is using.

from esri-leaflet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.