rsdevigo / jungle

A GUI for Kong Admin API - http://getkong.org/
Apache License 2.0
125 stars 27 forks source link

Not able to add plugin to an API #18

Closed debraj-manna closed 8 years ago

debraj-manna commented 8 years ago

I am not able to add plugin to an API. Please check the attached image. actplug

Chrome is showing the below error in console:-

XMLHttpRequest cannot load http://kong-dev:8001/apis/95877502-4469-43fe-c347-2e25cd831800/plugins. Request header field Content-Type is not allowed by Access-Control-Allow-Headers.
debraj-manna commented 8 years ago

For our environment adding Access-Control-Allow-Headers : "Content-Type" in server was good enough and solved the issue.