Git Product home page Git Product logo

Comments (8)

NielsLiisberg avatar NielsLiisberg commented on August 17, 2024

But CORS is just headers - You can add as manu you like. What am I missing?

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

The problem is that there is currently no API to add HTTP headers to the response. I once started it but failed due to the string handling in C. #19 is still open.

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

In the first step we could add the default CORS headers for making the REST service available for everybody. But in the second step we need to add some configuration who may use the REST service and the plugin should then add the corresponding CORS headers if the requestor is valid.

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

This means that we need to make the configuration available to the plugins and servlets (perhaps via a noxdb graph).

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

Same problems with the BasicAuth plugin. We need to have the realm configurable and the possibility to add HTTP headers to the response.

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

There is another open issue #11 which could help with this.
Why not having separate programs for loading the configuration (different implemenation: json, yaml, database, rest service). The program could build the noxdb graph and pass it to the ileastic service:

il_setConfiguration(configuration pointer);

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

If #85 is done then we could implement end point specific CORS header because we can identify the endpoint in the plugin.

from ileastic.

m1h43l avatar m1h43l commented on August 17, 2024

CORS support was added with pull request #93

from ileastic.

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.