Hi, I’m having some trouble enabling CORS with the Ada Web Server. I tried sending headers before the actual response as suggested here but this seems to cause the web server to hang and the browser to infinitely load.
I cannot help you directly on this, but I did find this old commit that seems to be related to your questions and it seems that AWS does have built-in support for CORS CORS header support for Ada Web Server. · GitHub But I would not know how that works (as in whether you have to run Access_Control_Request_Headers or do something else)…
Also AWS is now in maintenance mode and wont be supported in the future. There are other Ada web servers such as Ada Web Application (but I think it also uses AWS under the hood) and EWS
Yes, the post is merely about adding the header in the HTTP response not about any functionality. There are further headers to consider.
I do not think that this is an AWS responsibility. The user application must implement all necessary logic. The server only offers sending replies with headers required.
As for alternatives, Simple Components have HTTP(S) server and client. But see above.
Thanks for the responses, I will have a look at those alternative web servers. If I cannot find anything suitable, I may have a try at implementing the rest of the CORS handling.