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

HTTPs? #374

Open
eFlowMedia opened this issue Feb 29, 2024 · 5 comments
Open

HTTPs? #374

eFlowMedia opened this issue Feb 29, 2024 · 5 comments

Comments

@eFlowMedia
Copy link

So Ive set this up quite a few times, and every time I make sure that the site APP_URL="https://somedomain.com" prior to publishing and copying assets. (Note the https) But when I go to manually execute a task I get this error...

app.js:7 Mixed Content: The page at 'https://....com/totem/tasks' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http:/....com/totem/tasks/1/execute'. This request has been blocked; the content must be served over HTTPS.

How do I force totem to use https? Do I need to do something before I install it to tell it to use https?

@eFlowMedia
Copy link
Author

@qschmick Can you help with this one?

@qschmick
Copy link
Collaborator

@eFlowMedia Is you value:

APP_URL="somedomain.com"

or

APP_URL="https://somedomain.com"

It should be the latter. This is a Laravel thing

@eFlowMedia
Copy link
Author

Its - APP_URL="https://somedomain.com"

The crons are working, its just when I try to run them manually the link goes to http instead of https - ex "http://domain//totem/tasks/2/execute"
Screenshot 2024-03-22 at 6 20 00 AM

@johnnyang0815
Copy link

hi, is there any solution for this? I faced this issue as well

@eFlowMedia
Copy link
Author

Yes, I found the issue was because we were using Cloudflare. The solution is here...
https://laravel.com/docs/10.x/requests#configuring-trusted-proxies

I had to use "*" in order to get it to work, but solved my problem.

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

No branches or pull requests

3 participants