I was able to figure out that because Lightsail uses a Bitnami deployment of WordPress, Bitnami overrides the .htaccess
file.
Instead you have to update the /opt/bitnami/apache2/conf/httpd.conf
file by adding the following content:
<IfModule headers_module>
<IfVersion >= 2.4.7 >
Header always setifempty X-Frame-Options ALLOW-FROM https://*.example.com
</IfVersion>
<IfVersion < 2.4.7 >
Header always merge X-Frame-Options ALLOW-FROM https://*example.com
</IfVersion>
</IfModule>
Reference:
https://docs.bitnami.com/bch/apps/livehelperchat/configuration/enable-framing/
Related Posts:
- “Too many redirects” ONLY when trying to access wp-admin page
- Use a different domain for SSL
- .htaccess in wp-admin produces a redirect loop
- Change Login URL Without Plugin
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Securing wp-admin folder – Purpose? Importance?
- Wrong canonical link on wp-admin pages
- Upgrade to SSL Breaks Admin Dashboard
- WordPress in sub directory wp-admin problem
- Options for restricting access to wp-admin
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Remove HTTP: from the site URL and just keep // in it
- Can’t access admin dashboard with wp-admin without /index.php after it
- How to change “wp-admin” to something else without search-replacing the core?
- Why should I password protect WP-Admin?
- Embed WordPress Admin in an iframe
- Call to undefined function insert_with_markers
- Block access to wp-admin
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- SSL Partially breaking admin panel and elementor
- CDN + WP Admin Query – .htaccess redirection
- From 403 error to 500 internal server error
- Cannot Access Admin Area After Migration
- Wrong wp-admin URL
- Can’t login to Dashboard when changing site URL to HTTPS
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- How do I host WordPress on a hidden domain through a reverse proxy?
- How to Change The WordPress Login URL Without Plugin
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Too many redirects after added SSL redirect on port 80 virtual host
- How login is possible, if I deny login page via .htaccess with allow ip
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Admin sometimes redirects to HTTPS
- Blank page when viewing wp-admin
- Can’t access wp-admin after http to https change
- wp-admin going directly to 404
- WordPress /wp-admin redirect to wrong port in docker
- Can’t access WP-Admin via HTTPS
- mixed contents admin panel is Unsecured
- wp-admin and wp-login.php not Accessible after Cloudflare
- Disabling WP-Admin Caching in htaccess
- Random HTTPs redirections at admin area in shared hosting
- Mixed content and expired session issues with SSL and wp-admin
- Limit access to wp-admin but still be able to log in from different locations?
- SSL doesn’t deliver parts of WordPress Administration Module
- Making WP Admin Folder accessable JUST under a different link
- ‘Too many redirects’ error after changing site URL in WordPress [closed]
- Couple questions about .htaccess, login page, updates
- Https Website: CSS and JS files load in http and admin page does not load too
- adding the category to the admin column for a custom post type?
- Change page title in admin area
- How to filter by post-format in admin?
- How to remove the site health dashboard widget?
- Admin account only shows Profile and Dashboard with no activity
- Opening specific posts on WP takes lot of time and freezes the editor
- Edit a WordPress site without the username and password?
- How can I remove the new stats message? [closed]
- How to inhibit dashboard and profile management access to normal users?
- Stop loading “collaborators” users on add new post or page?
- Disable the administration email address verification (new in 5.3)
- Get which template being in use within WordPress-admin
- special characters after saving draft interpreted as �
- Allow administrators to pick post author on custom post type edit screen
- /wp-admin/ works but website doesn’t load
- Add custom list menu on Posts page in admin panel
- Does it matter if two people are using the same WordPress admin account?
- Add column to pages table
- Use Password Protected Form without the use of wp-login.php
- External content won’t load in iframe in Safari
- My email address is displaying an email which does not work. What do i do?
- Register page in admin area
- Removing Dashboard Menu Items Through The Database
- “WordPress installations is currently out of date” problem with difficult situation [closed]
- Custom plugin admin page issues
- Customising Word press Admin – Add Post Page functionality to another similar page
- How to add ‘Insert HTML Table’ button to TinyMCE in admin?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- How can I remove unwanted word on my WP site?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- WordPress Admin extremely slow when other admin logged in
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- adding existing menu page on new customer user role
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- Can I get programmatic access to wp-admin?
- remove_query_arg on options.php
- wp.svgPainter cannot init error, causing issues with admin panel
- mysql_escape_string PROBLEM
- Organising and display thousands of photos in media library
- Custom comment action
- get_current_screen – ‘Trying to get property of non-object’ error
- Block tools menu in wp-admin?
- is_admin() triggers error
- My website does not load since two days!
- how to Hide all products except the General Manager role in the WordPress admin panel?