diff options
author | Evan Minto <evan.minto@gmail.com> | 2017-04-22 20:21:10 -0700 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-23 05:21:10 +0200 |
commit | 66fd8e782182390df81f1ed46f3a04f3a01d681e (patch) | |
tree | f8f6ffb3bfc220e3e8e7efaf273e285b932f1962 /app/controllers/accounts_controller.rb | |
parent | 83e35381814baf4ae5f420531d83c0450716f875 (diff) |
ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197)
* Clean up collapsible components * Expose user Outboxes and AS2 representations of statuses * Save work thus far. * Fix bad merge. * Save my work * Clean up pagination. * First test working. * Add tests. * Add Forbidden error template. * Revert yarn.lock changes. * Fix code style deviations and use localized instead of hardcoded English text.
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r-- | app/controllers/accounts_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 8eda96336..d79ed142a 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -15,7 +15,9 @@ class AccountsController < ApplicationController render xml: AtomSerializer.render(AtomSerializer.new.feed(@account, @entries.to_a)) end - format.activitystreams2 + format.activitystreams2 do + headers['Access-Control-Allow-Origin'] = '*' + end end end |