-
Notifications
You must be signed in to change notification settings - Fork 7
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 headers to Nginx sites configurations(s) #394
Comments
Thanks for your proposal. I added the feature supporting CORS for Orion on my branch How to get the remote branch as shown:
To enable CORS for Orion, set ORION_CORS= to Thanks. |
Oh, great! I will try it out in the next days. I don't have a good overview of FIWARE specific headers, I just know about |
I tested the CORS settings and they work perfectly! |
Add cross-origin resource sharing for Orion (#394)
This feature has been implemented at PR #395 and is included in the latest release, FIWARE Big Bang v0.40.0. |
Describe your feature request
I have created a Redmine plugin, that allows users to create and publish FIWARE Context Broker subscriptions, which then can create and update issues based on FIWARE notifications, and FIWARE-Big|Small-Bang was extremely helpful for development. Thanks a lot!
The plugin allows both, to publish subscriptions directly from the browser client, but also through the server. I have cases where publishing through the server is not possible, but when I try to connect to Orion for example directly, connection is not possible due to missing CORS settings in Nginx.
Describe the solution you'd like
It might be also useful for others to have CORS enabled. I only needed this for Orion, and the following settings worked for me:
I'm not sure enabling CORS for other services would be also helpful, probably yes.
In this case there might be a better way than including CORS settings in each and every Nginx template.
Describe why you need this feature
Additional information
location
permitted inAccess-Control-Expose-Headers
, because otherwise this information is dropped from the responsefiware-service, fiware-servicepath
inAccess-Control-Allow-Headers
to support multi-tenant configurationsI'm not sure other services/use cases need similar additional settings.
Do you have the intention to implement the solution
Other information
The text was updated successfully, but these errors were encountered: