Cors question need help

I use “kong.response.exit(res.status, res.body)”
when res.status=200,The interface is open ,no problem
but when res.status!=200,have questions
questions is No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Did I configure it right?
thank you

kong built-in cors plugins

http://www.KongSky.com

docs.konghq.com/hub/kong-inc/ cors/