user3236765
user3236765

Reputation: 413

Password access not working with AWS Cloudfront website using Drupal

I have a Drupal website that's been configured with AWS Cloudfront.

My problem is that now passworded access to the CMS is not happening. The page asks for the username/password and then I click on the "Login" button and it gives me "access denied" message.

The password is fine so I'm sure this is a Cloudfront problem. Can anyone please assist me why this is happening?

Upvotes: 1

Views: 1369

Answers (2)

Yogeshwar Chaudhari
Yogeshwar Chaudhari

Reputation: 503

"The forward cookies setting in the Cloud Front worked for me."

I have not verified other functionality of the website but seems like it will work. It seems like the CloudFront will be useless since it will sending every request to the origin.

AWS CloudFront -> Distributions -> (Your Distributioon) -> Edit behavior

enter image description here

Upvotes: 0

Piyush Patil
Piyush Patil

Reputation: 14553

The issue happening is with Authentication headers and Cookies not being forwarded to the parent server from the Cloud Front Distribution. Whitelisting Origin, Host, Referrer, Authorization Headers and Forwarding all cookies will fix this issue.

Upvotes: 5

Related Questions