grails-cors icon indicating copy to clipboard operation
grails-cors copied to clipboard

Config.groovy configuration example

Open penrillian-chrisa opened this issue 9 years ago • 3 comments

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?

penrillian-chrisa avatar May 26 '16 16:05 penrillian-chrisa

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 [email protected] 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

davidtinker avatar May 27 '16 19:05 davidtinker

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

penrillian-chrisa avatar Jun 14 '16 09:06 penrillian-chrisa

Sorry forgot .. this should work:

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

davidtinker avatar Jun 15 '16 06:06 davidtinker