# How to enable CORS plugin on K8S and dbless kong

**URL:** <https://discuss.konghq.com/t/how-to-enable-cors-plugin-on-k8s-and-dbless-kong/5151>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [December 13, 2019, 7:35pm UTC](https://discuss.konghq.com/t/how-to-enable-cors-plugin-on-k8s-and-dbless-kong/5151 "2019-12-13T19:35:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [December 16, 2019, 5:48pm UTC](https://discuss.konghq.com/t/how-to-enable-cors-plugin-on-k8s-and-dbless-kong/5151/2 "2019-12-16T17:48:40Z")

</div>

@arvtiwar Please do not cross-post. It leaves threads hanging in the forum and the maintainers have a hard time navigating all the notifications. If you post once, please have patience and someone will get back to you as soon as they can.

Regarding this:

> [@Looking for examples and doc reference](https://discuss.konghq.com/t/looking-for-examples-and-doc-reference/5132/7):
>
> does this plug cong looks good? apiVersion: [configuration.konghq.com/v1](http://configuration.konghq.com/v1) kind: KongPlugin metadata: name: http-cors namespace: app-dev plugin: cors config: origins: “[https://my.origin.net](https://my.origin.net)” methods: GET POST PUT DELETE PATCH OPTIONS headers: Accept Accept-Version Content-Length Content-MD5 Content-Type Date X-Auth-Token exposed\_headers: X-Auth-Token credentials: true max\_age: 3600

What problem did you run into? That looks correct on the face of it.  
The general guidelines is that you should take the `config` part of the plugin configuration from the docs site and then change it to YAM format under the config property of KongPlugin resource.

---

_[View the full topic](https://discuss.konghq.com/t/how-to-enable-cors-plugin-on-k8s-and-dbless-kong/5151)._
