Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling CORS on a view with no access to Resp #191

Open
noahbkim opened this issue Jun 24, 2019 · 0 comments
Open

Enabling CORS on a view with no access to Resp #191

noahbkim opened this issue Jun 24, 2019 · 0 comments

Comments

@noahbkim
Copy link

noahbkim commented Jun 24, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant