davidtinker / grails-cors

Grails plugin to add Cross-Origin Resource Sharing (CORS) headers
38 stars 21 forks source link

Config.groovy configuration example #42

Open penrillian-chrisa opened 8 years ago

penrillian-chrisa commented 8 years ago

Hi

I'm struggling to configure Access-Control-Allow-Headers to allow the standard values, plus a new x-abc, i.e. [origin, authorization, accept, content-type, x-requested-with, x-abc]

Please could you provide an example Config.groovy configuration?

davidtinker commented 8 years ago

I am out of town with limited internet. Will have a look on Sunday when I get back.

On Thu, 26 May 2016 at 6:02 PM Chris Allison notifications@github.com wrote:

Hi

I'm struggling to configure Access-Control-Allow-Headers to allow the standard values, plus a new x-abc, i.e. [origin, authorization, accept, content-type, x-requested-with, x-abc]

Please could you provide an example Config.groovy configuration?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/davidtinker/grails-cors/issues/42

penrillian-chrisa commented 8 years ago

Hi David, sorry to bug you, but did you get a chance to have a look at this?

davidtinker commented 8 years ago

Sorry forgot .. this should work:

cors.headers = ['Access-Control-Allow-Headers': 'origin, authorization, accept, content-type, x-requested-with, x-abc']