# ステージング環境にパスワード保護をかける方法

**URL:** <https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641>\
**Category:** Self-hosting\
**Created:** [2020 年 8 月 21 日午前 9:25 UTC](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641 "2020-08-21T09:25:00Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Terrapop](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Terrapop](https://meta.discourse.org/u/Terrapop)\
**Post date:** [2020 年 8 月 21 日午後 12:40 UTC](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641/9 "2020-08-21T12:40:11Z")

</div>

同じ問題に遭遇している方のための更新情報:

> **[All distribution settings reference - Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesWhitelistHeaders)**
>
> The values that you specify when creating or updating a CloudFront distribution, such as origin and cache behavior settings.

cdn-origin に対して CloudFront で Authorization ヘッダーのホワイトリスト登録を行いました。

cdn-uploads については、認証を求められていなかったようです。

現在、動作しています。

---

_[View the full topic](https://meta.discourse.org/t/how-to-password-protect-staging-environment/161641)._
