Pro Theme + multiple domain + custom font family

Good news: all works as expected… almost.

The issue is the custom font family (tech details pls. see secure note).

Two domains: domainA.com and domainA.eu
domainA.com is the main domain, domainA.eu is poitned to a specific page by the means of the multiple domain plugin by gustavo straube.

the first page of the domainA.eu does not load the custom font. The console of the browser (mozilla) gives this error message:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://…domain…de/assets/RotisSansSerifStd.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

If I enter the same page over the main domain - all’s roger.

What did I try yet:

  1. I added the “font-face” rule to the specific page CSS
  2. I added the rule over the global CSS
  3. I added the rule over the style.css.
  4. I used a custom folder for the fonts and loaded from there: site-url/assets/…
  5. I uploaded the fonts to the media library and loaded the fonts via editor
  6. I also linked the fonts with the address from the media library (…/uploads/XYXYX/font…)

Nothing worked. Adding the standard browser fonts e.g. Arial works.

I’d appreciate a hint or a solution very much. Thx a heap!

solved it: added

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "my second domain"
</IfModule>

to htaccess

Hello Ondrej

Glad that you were able to fix the issue by yourself. Please feel free to reach us if you have any query regarding our theme and theme settings.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.