craigk5n / webcalendar

WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
http://www.k5n.us/webcalendar.php
GNU General Public License v2.0
153 stars 74 forks source link

Invalid referring URL when both www.{website} and {website} point to WebCalendar #208

Open yurivict opened 4 years ago

yurivict commented 4 years ago

The latest WebCalendar fails with "Invalid referring URL" when the "Save" button is clicked.

The SERVER_URL field in the webcal_config table contains correct URL.

This happens on some computers and not on others.

yurivict commented 4 years ago

Both http://www.{mydomain}/webcalendar and http://{mydomain}/webcalendar point to the same application. The www version fails with the above error, because SERVER_URL=http://{mydomain}/webcalendar/

I am not sure how to avoid this problem, and why didn't this happen with the previous version of WebCalendar.

lietzmk commented 3 years ago

Do you still get the error if you change the site URL to https://{mydomain}/webcalendar

yurivict commented 3 years ago

No, I am not getting this error now. Not sure what has changed.