webcalendar
webcalendar copied to clipboard
Invalid referring URL error on Chrome only
Hello, I am running WebCalendar Version 1.2.7 and every time I try to edit or add an entry on Chrome I get a white error page saying "Invalid referring URL" generated by /calendar/edit_entry_handler.php The strange thing is that on Safari it works fine, but the same computer with the same IP on Chrome shows that error every time. How can I fix this?
Did you change something in the config or does this concern a new installation?
If you have switched from http to https: Maybe this will help: https://github.com/craigk5n/webcalendar/issues/69 or the https://github.com/craigk5n/webcalendar/issues/208
I haven't changed anything in a while but it's been happening in a while, so, after reading #69 I have a feeling it's because we have added a second domain, so I commended that die_miserable_death line and it worked. Thank you!
`if ( ! preg_match ( "@$SERVER_URL@i", $_SERVER['HTTP_REFERER'] ) ) {
// Gotcha. URL of referring page is not the same as our server.
// This can be an instance of XSRF.
// (This may also happen when more than address is used for your server.
// However, you're not supposed to do that with this version of
// WebCalendar anyhow...)
//die_miserable_death ( translate ( 'Invalid referring URL' ) );
}`