-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Form action URLs on HTTP while Monica instance is on HTTPS #1535
Comments
Same issue with the latest docker image (also v2.3.1) on my end. I just want to add that I specified the |
The APP_URL is only used to generate the links for emails. |
@asbiin What should I set the |
Hello, I had the same issue running Monica on Docker(Swarm mode) with Traefik as a reverse proxy. As @asbiin mentioned, I solved the issue by setting
Maybe @asbiin can further explain how this should be set up. Please let me know if this works for any of you. |
Indeed, the |
Setting the |
Note for anyone else who is looking for this, after making .env changes, you seem to need to have to run |
@IronTooch this is due to config caching. |
We faced this issue in the Cloudron package as well where monica is behind a reverse proxy. Setting APP_TRUSTED_PROXIES=* solves the issue. For some reason, deleting the |
Can this get closed now that #1997 is merged? |
This issue has been automatically locked since there |
Describe the bug
My instance of Monica is on
HTTPS
. When I try to delete a call or add an activity I get the following error from Firefox:This is caused by the form action being on
HTTP
while the page is onHTTPS
. For example, this line of code on the page<form method="POST" action="http://example.mywebsite.com/activities/store/h:KJPRLXvBmbVZDonyQ2">
needs to be changed to<form method="POST" action="https://example.mywebsite.com/activities/store/h:KJPRLXvBmbVZDonyQ2">
. If it's not changed then I get the following Laravel (I think it's Laravel) error:Whoops, looks like something went wrong.
. I changed that line of HTML with Dev Tools and everything worked great. So, currently, in order to add an activity or preform something similar I need to manually edit the HTML code. All of the form action URLs should be onHTTPS
if the Monica instance is onHTTPS
, right? If that were true then my issue would be solved.Screenshots
https://imgur.com/a/TFyhN0G
(GitHub wouldn't let me upload the images for some reason)
Which version are you using:
Additional context
None
The text was updated successfully, but these errors were encountered: