Skip to content
Extraits de code Groupes Projets
Valider d002c14a rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Initial implementation of allowing cross-origin requests in the webfinger...

Initial implementation of allowing cross-origin requests in the webfinger flow, so that the unhosted guys can use Diaspora.  May not work with caches-page on host-meta.  We'll have to use X-Accel-Redirect or something.
parent 137181e0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,6 +10,11 @@ class PublicsController < ApplicationController ...@@ -10,6 +10,11 @@ class PublicsController < ApplicationController
skip_before_filter :set_invites skip_before_filter :set_invites
skip_before_filter :which_action_and_user skip_before_filter :which_action_and_user
skip_before_filter :set_grammatical_gender skip_before_filter :set_grammatical_gender
before_filter :allow_cross_origin, :only => [:hcard, :host_meta, :webfinger]
def allow_cross_origin
headers["Access-Control-Allow-Origin"] = "*"
end
layout false layout false
caches_page :host_meta caches_page :host_meta
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter