Enabling CORS on a view with no access to Resp
noahbkim opened this issue · comments
Noah Kim commented
My view looks something like this:
@GET("/api/thing/{id}")
public Document get(String id) {
return Thing.select(id);
}
I'd like to enable CORS on the endpoint, but I'm not sure how I can do so without access to the Resp in the view signature. Are there any other ways to do this?