Not Solved [General] Problem with SSL MYBB
Not Solved
Hi guys how are you?

Well, I have a problem with mybb and if anyone can help me, I'm sure that others, too, have passed or will experience the same problem.

- When installing the free Let's Encrypt SSL certificate, I noticed that when accessing my Forum it was partially with its bugged fonts.

Here are some prints:
https://www. =
https:// (without www.) =

To run the fonts without the www. on https I had to do the following:

However, there is no way to make both / all the way work ...

Someone has gone through this, could you help me?

Would the SSL certificate do that? And if you use a PAYMENT certificate, maybe?

Thanks in advance!
Not Solved
Don't include your domain name when you specify the font to load: since you're including a local font, just specify its relative url images/mbr2/fonts/...
The problem should derives from the fact that most browsers don't allow cross-domain resources (including subdomains), such as fonts, and www it's actually a subdomain, even if it shows the same content. It could also be solved manipulating Access-Control-Allow-Origin header when a font is requested or also forcing the redirect from non-www to www (or viceversa).
Not Solved

Thank you for your response ..

I have edited the urls for:

However, it still only shows without the [www.]
With [www.] You simply do not pull the correct fonts ...

Could it be a problem with https certificate as mentioned in the topic opening?

I'll test later, importing the theme into an environment without .https: //

You have an idea of what it can be so you do not have to force use without [www.] And leaving all functional forms.

Since jah Thank you !!
Not Solved
Oh, I think it's because of MyBB stylesheet directory. You may try to include it in headerinclude in the same way inside style tags, should work. Or allow your domain to Access-Control-Allow-Origin header adding in the .htaccess (found online):

# ----------------------------------------------------------------------
# Allow loading of external fonts
# ----------------------------------------------------------------------
<FilesMatch "\.(ttf|otf|eot|woff)$">
    <IfModule mod_headers.c>
        SetEnvIf Origin "http(s)?://(www\.)?($" AccessControlAllowOrigin=$0
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header merge Vary Origin
Not Solved
If it works without www then why not just remove it altogether?

Forum Jump:

Users browsing this thread: 1 Guest(s)