Replies: 3 comments 5 replies
-
I like this. If this can be solved by just adding this piece of code: httpServerExchange.getResponseHeaders()
.put(new HttpString("Access-Control-Allow-Origin"), "*"); Then it's super easy, we could have a setting to enable/disable that. WDYT? |
Beta Was this translation helpful? Give feedback.
2 replies
-
As this is a security matter and users may like to define their own
constraints, I suggest making the value * only if the user did not define
their own value.
Tolga Ulas
…On Tue, May 2, 2023 at 12:22 PM Luca Garulli ***@***.***> wrote:
I like this. If this can be solved by just adding this piece of code:
httpServerExchange.getResponseHeaders()
.put(new HttpString("Access-Control-Allow-Origin"), "*");
Then it's super easy, we could have a setting to enable/disable that. WDYT?
—
Reply to this email directly, view it on GitHub
<#1057 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK5MQUWI57IJY4UR3O7NPLXEDG6PANCNFSM6AAAAAAXPGIVSY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I've pushed a new branch @gramian was mentioning an OPTIONS call is still missing. What else should we provide? Feel free to fork and contribute to this branch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Developers,
I would like to propose to add a server setting enabling Cross Origin Resource Sharing (CORS).
While publicly exposing a database server in entirety is generally a bad idea, just forwarding the
query
endpoint for a read-only user could be acceptable. Also during development and testing of a wrapping application or driver, such a setting could be useful.As ArcadeDB uses Undertow, enabling CORS is dicussed here: https://stackoverflow.com/questions/42066845/how-to-enable-access-control-allow-origin-in-undertow
Best
Beta Was this translation helpful? Give feedback.
All reactions