Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:59:17+00:00 2026-06-13T00:59:17+00:00

How do I access the Authorization header of a request with Perl Dancer? I

  • 0

How do I access the Authorization header of a request with Perl Dancer?

I have tested my client and it is successfully passing the Authorization header, but it does not appear in the request->headers hash. I can get it to show up by simply misspelling it or appending an X- in front but I’m making an API and would like to use the conventional header to pass the request signature for authentication.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:59:18+00:00Added an answer on June 13, 2026 at 12:59 am

    Looks like FastCGI strips the Authorization header, probably because basic HTTP auth is hideously insecure. Not that sending in the username and password over a POST is any better.

    From Plack::Handler::FCGI…

    Most fastcgi configuration does not pass Authorization headers to
    HTTP_AUTHORIZATION environment variable by default for security reasons.
    Authentication middleware such as Plack::Middleware::Auth::Basic or 
    Catalyst::Authentication::Credential::HTTP requires the variable to be set up. 
    Plack::Handler::FCGI supports extracting the Authorization environment variable
    when it is configured that way.
    
    Apache2 with mod_fastcgi:
    --pass-header Authorization
    
    mod_fcgid:
    FcgiPassHeader Authorization
    

    It’s also mentioned as a caveat to Plack::Middleware::Auth::Digest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Access modifiers like public , private are not allowed on static constructors in C#.
To access a remote database, I first have to use a program called Shrew
I need to do a getJSON() request, but how do I pass authorisation and
I am trying to access google docs with jQuery. Here's what I have so
I've created a custom voter that denies access to my API if the request
I have Basic Authorization mechanism on the server for WSDL/SOAP. How I can send
I'm using the PayPal API to Request Permissions from a merchant to access certain
If I'm making an OAuth Access Token request for resources of a third party
I have this application that relies extensively on Request.UrlReferrer for handling link clicks and
I have searched for a few days now, high and low and have not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.