Little Fighter Empire - Forums
"Open Buddy List" not working - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Empire Zone (https://lf-empire.de/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Report (https://lf-empire.de/forum/forumdisplay.php?fid=6)
+--- Thread: "Open Buddy List" not working (/showthread.php?tid=10804)



"Open Buddy List" not working - MangaD - 01-08-2018

Hello, it is as the title says. The "Open Buddy List" is not working. Upon inspecting element this is the error message I get:

Inspect Element Wrote:Failed to load https://www.lf-empire.de/forum/misc.php?action=buddypopup: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://lf-empire.de' is therefore not allowed access.



RE: "Open Buddy List" not working - Silverthorn - 01-12-2018

*sigh...*

Which browser? Why is it so difficult to provide me with basic information?

Works for me in Firefox 57, @mfc confirmed that it works in Chrome.





Also, while I'm on a rant, go fix the certificate-error with HFE, your sig is bugging me.
For the record, the entire website is inaccessible for me (SSL_ERROR_BAD_CERT_DOMAIN, certificate is valid for *.alfahosting-server.de, alfahosting-server.de; not herofighter-empire.com).


edit: apparently, Firefox is super-sturdy in remembering sites where even hard refreshes (Ctrl+F5 or whatever) don't help. One gotta hit forget about this site to make it accessible.


RE: "Open Buddy List" not working - MangaD - 01-12-2018

It is working for me as well now. Thank you.

I will see what I can do about HFE.


RE: "Open Buddy List" not working - MangaD - 07-15-2020

Coming back to this topic, I've just noticed that this bug happens if the url has the www prefix.


RE: "Open Buddy List" not working - Silverthorn - 08-10-2020

Confirmed. Seems like it's got to do something with
{$mybb->settings['bburl']}
plus browsers being very picky about URLs nowadays. Gotta figure something out at some point, running a bit low on time right now...


RE: "Open Buddy List" not working - MangaD - 09-17-2020

I believe the easiest way is to just redirect www to non-www. This should also solve a few issues such as mirrored domain. Put this in the .htaccess inside the forum folder:

Code:
# Used to not interfere with the .htaccess from Joomla
RewriteEngine On
RewriteBase /

# HTTPS force
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Rewrite www to non-www
# Taken from: https://stackoverflow.com/questions/234723/generic-htaccess-redirect-www-to-non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/forum/$1 [R=301,L]



RE: "Open Buddy List" not working - Silverthorn - 09-20-2020

Thanks! I added it now, please report back if you encounter any issues Wobble