This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing a CORS policy error when accessing fonts from a different domain, which is causing issues with content mixing between translated and default language versions on their website.
Solution:
We recommend first disabling any caching on your site to see if this resolves the issue. If the problem persists, you should add the following code to your .htaccess file to adjust the CORS settings:
#BEGIN WPML CORS Policy fix<br /><ifmodule mod_headers.c><br /> Header set Access-Control-Allow-Origin "*"<br /> Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"<br /> Header set Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With"<br /></ifmodule><br />#END WPML CORS Policy fix
Additionally, consult with your hosting provider to ensure proper server configuration for CORS. You might find these resources helpful:
If issues with mixed content still occur after these adjustments, please revisit this support ticket for further assistance.
Please note that the solution provided might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, do not hesitate to open a new support ticket here.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/mixed-content-after-theme-customizer-update/
This topic contains 3 replies, has 0 voices.
Last updated by 3 weeks, 6 days ago.
Assisted by: Dražen.