Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update boot method to force HTTPS in production environment #1740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nghiadaulau
Copy link

feat: Update boot method to force HTTPS in production

  • Added condition to check if the app is in production environment.
  • Applied \URL::forceScheme('https') to ensure all URLs are loaded over HTTPS.
  • Fixes issue of mixed content where static assets are loaded over HTTP while the page is served over HTTPS.

BUGS:

Fixed mixed content error where static assets were being loaded over HTTP in production.

For things other than bugs:

Updated boot method to ensure all URLs are served over HTTPS in production.

- Added condition to check if the app is in production environment.
- Applied \URL::forceScheme('https') to ensure all URLs are loaded over HTTPS.
- Fixes issue of mixed content where static assets are loaded over HTTP while the page is served over HTTPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant