使用rails-ckeditor,我在嘗試使用「瀏覽服務器」然後點擊「上傳」按鈕上傳圖片時遇到401異常。我保證我的網站現在使用簡單的基本身份驗證這種使用rails ckeditor插件和基本身份驗證的問題
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :authenticate
def logged_in?
# cookies[:auth].present?
end
def authenticate
# unless logged_in?
authenticate_or_request_with_http_basic do |login, password|
if(login == "user1" && password == "password")
cookies.permanent.signed[:auth] = login
end
end
# end
end
def current_church
@current_church ||= Church.first
end
end
如果我禁用基本身份驗證一切工作正常。有沒有補救辦法呢?
感謝-wg
看起來像它使用SWFUpload所以是的。 – wgpubs