-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CORS support #34
Comments
But CORS is just headers - You can add as manu you like. What am I missing? |
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. |
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. |
This means that we need to make the configuration available to the plugins and servlets (perhaps via a noxdb graph). |
Same problems with the BasicAuth plugin. We need to have the realm configurable and the possibility to add HTTP headers to the response. |
There is another open issue #11 which could help with this.
|
If #85 is done then we could implement end point specific CORS header because we can identify the endpoint in the plugin. |
CORS support was added with pull request #93 |
Many JavaScript application need CORS support for their REST services if JSONP is not used.
The text was updated successfully, but these errors were encountered: