Comments (8)
But CORS is just headers - You can add as manu you like. What am I missing?
from ileastic.
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.
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.
This means that we need to make the configuration available to the plugins and servlets (perhaps via a noxdb graph).
from ileastic.
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.
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.
If #85 is done then we could implement end point specific CORS header because we can identify the endpoint in the plugin.
from ileastic.
CORS support was added with pull request #93
from ileastic.
Related Issues (20)
- il_responseWriteStream returns incomplete JSON HOT 5
- Issue on compile HOT 1
- Issue compiling plugins HOT 5
- Wrong route id set on request HOT 8
- Using il_getPathParameter Without Index Returns Wrong Value HOT 1
- Service program incompatible due to changed order of procedure exports
- examples compile fails with CPFA0A9: Object not found. Object is EN_US.UTF-8. HOT 2
- Missing subfield in il_request data structure HOT 2
- JSON Response '#' in field name with '{' HOT 3
- JWT key length issue HOT 4
- JWK HOT 3
- SAML support HOT 1
- Crash in jwt_verify HOT 4
- Unable to use JWKS endpoints using proc ptr HOT 6
- Jwt RS256 HOT 5
- JWT verify issue for longer tokens HOT 4
- Hardcoded signing hash algorithm in JWT plugin HOT 1
- RouteId length is not initialized when il_addRoute was called without routeId parameter
- JWT verify procedure API is broken HOT 1
- Base64encode gives out values not recognized by JS btoa() function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ileastic.