We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my code... I'm still asked to login, though. Any idea? username and password are definitely correct.
def _reverse_proxy(endpoint=nil) @url = Settings.wordpress.url @path ||= [endpoint, params[:path]].compact.join.gsub('//', '/') reverse_proxy @url, options do |config| config.on_missing do |code, response| redirect_to root_url and return end end end def options source_request = URI(@url) { headers: { "HOST" => source_request.host, "X-Forwarded-Host" => source_request.host, "X-Forwarded-Port" => source_request.port.to_s, "X-Forwarded-Proto" => source_request.scheme, }, path: @path, username: Settings.wordpress.username, password: Settings.wordpress.password, verify_ssl: Rails.env.production? }.with_indifferent_access end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my code... I'm still asked to login, though. Any idea? username and password are definitely correct.
The text was updated successfully, but these errors were encountered: