You can check How to securely test local/staging HTTPS project for more details about required setup or just follow instructions below.
WARNING: You'll need to run these commands just once, don't run them again if you already did this before for some other project.
MacOS users should first prepare OpenSSL package:
Modern projects often support HTTPS and HTTP/2, moreover they can use Strict-Transport-Security:
and
Content-Security-Policy:
headers which result in different behaviour for HTTP and HTTPS versions, or
even completely forbid HTTP version. To develop and test such project locally, on CI, and at staging server
we either have to provide a way to access it using HTTP in non-production environments (bad idea) or
somehow make it work with HTTPS everywhere.
HTTP in non-production environments is a bad idea because we'll test not the same thing which will runs on production, and because there is a chance to occasionally keep HTTP enabled on production too.
/*** MY OVERRIDES ***/ | |
user_pref("_user.js.parrot", "overrides section syntax error"); | |
/* [UX,-HIST] Restore previous session after Firefox restart. */ | |
user_pref("browser.startup.page", 3); // 0102 | |
/* [UX,-GEO] Allow websites to detect my locale. */ | |
user_pref("intl.accept_languages", "ru,en-us,en"); // 0210 | |
user_pref("javascript.use_us_english_locale", false); // 0211 |