Richard has not published any posts yet.

So now, it doesn't look like the request is ever even making it to IRIS.

We're using IIS 7 on a Microsoft Server, but I thought the request would be straight mapped to CSPGateway by IIS, but maybe I need to configure IIS not to reject the request as well?

I should also say that my Data Classes are inheriting from AppS.REST.Model.Proxy, and access via Postman works perfectly.

Thanks Matthew!

Can you help with how you would enable CORS handling using Apps.REST?

I've done a few things, but with not much luck:

In AppS.REST>Handler, I added Cors = "true" to each of the <Route> elements in UrlMap, and then added the over-ride ClassMethod OnHandleCorsRequest as well, with the standard default processing:

ClassMethod OnHandleCorsRequest(pUrl As %String) As %Status
Do %response.SetHeader("Access-Control-Allow-Origin","*")
    Do %response.SetHeader("Access-Control-Allow-Credentials","true")
    Do %response.SetHeader("Access-Control-Allow-Methods","GET, PUT, POST, DELETE, PATCH, OPTIONS")
    Do %response.SetHeader("Access-Control-Allow-Headers","Access-Control-*, Content-Type, Authorization, Accept, Accept-Language, X-Requested-With, Origin")
    Quit $$$OK

Richard has no followers yet.
Richard has not followed anybody yet.
Global Masters badges:
Richard has no Global Masters badges yet.