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

header are not adding when using 'as JSON' converters #30

Open
harigopalakrishna opened this issue Oct 29, 2014 · 4 comments
Open

header are not adding when using 'as JSON' converters #30

harigopalakrishna opened this issue Oct 29, 2014 · 4 comments

Comments

@harigopalakrishna
Copy link

Plugin seems to not add CORS headers when rendering data as JSON using grails JSON converter. I'm using grails 2.0.3

import grails.converters.JSON
class RestaurantApiController{

def summary() { 
    def student=Student.get(params.id)
    render student as JSON
}

}

@harigopalakrishna
Copy link
Author

I just realized that basic rendering is also not adding CORS headers. not sure if i'm missing something here.

render "Hello World"

@dularion
Copy link

same

@davidtinker
Copy link
Owner

Can one of you guys check to see if the servlet filter is being loaded? You can look at any stack trace from a controller and see if 'CorsFilter' is in there somewhere.

@tkmilbaugh
Copy link

Has this issue ever been addressed? I have an issue that is possibly related.

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

4 participants