I am working on an AngularJS application that uses Domino as a backend. Since I need more settings than Domino Access Services (DAS) provides, my next choice was the REST service from the extension library.
The application runs in a separate domain from Domino, so I need to add CORS headers for this script to work. Using CORS, the browser (for some requests) first executes the HTTP OPTIONS subroutine request to the server to check which methods are allowed (more about CORS here: http://www.html5rocks.com/en/tutorials/cors/ ).
The problem I encountered is that Domino throws an error Method Not Allowed(response code 405) in this OPTIONS request. I have already added it to the list of allowed methods in the document of my website (although I'm not sure if the REST service will appreciate this). The request is performed through the DAS.
Looking at the source code RestDocumentJsonService in the extension library, it seems that the OPTIONS method is not supported at all.
Any thoughts on how to make this work? Or for a workaround? I know that I can write my own servlet or install a proxy in front of Domino, but I do not want to go along this route (for now ;-)
source
share