# Adding a ruby controller via plugin

**URL:** <https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661>\
**Category:** Development\
**Created:** [2017 年4 月 8 日 20:28 UTC](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661 "2017-04-08T20:28:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2017 年4 月 8 日 21:30 UTC](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661/6 "2017-04-08T21:30:23Z")

</div>

If I’m reading the error right, I think you’re doing an AJAX request FROM `staffdev.{redacted}.com` TO `staffforumdev.{redacted}.com`. Therefore you need to modify Discourse to allow requests from staffdev.

~~I believe that should be as simple as adding staffdev to the “allowed embed” list in the admin panel at `/admin/customize/embedding`~~

---

_[View the full topic](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661)._
