Getting CORS error while loading font from newspaper

Posted in: Newspaper
Post count: 51

Hi team ,

I am getting (index):1 Access to font at ‘https://www.techweu.com/java/images/icons/newspaper.woff?17’ from origin ‘https://techweu.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Error in the console can you please help here ? it says newspaper fonts are not being loaded

Please see here –> https://imgur.com/a/Q44mTjH

Post count: 51

Also I tried adding this to fix it but it did not helped 🙁

<FilesMatch “.(eot|ttf|otf|woff)”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>

below is my .htaccess current configuration to save your time

# BEGIN WP Hide & Security Enhancer
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#WriteCheckString:1585922522_44124
RewriteRule .* – [E=HTTP_MOD_REWRITE:On]

RewriteRule ^java/main.css /wp-content/themes/Newspaper/style.css [L,QSA]

RewriteRule ^java/(.+) /wp-content/themes/Newspaper/$1 [L,QSA]

RewriteRule ^php_includes/(.+) /wp-includes/$1 [L,QSA]

RewriteRule ^mediaupload/(.+) /wp-content/uploads/$1 [L,QSA]

RewriteRule ^my-xml-rpc.php /xmlrpc.php [L,QSA]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^readme.html /index.php?wph-throw-404 [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^license.txt /index.php?wph-throw-404 [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^wp-signup.php /index.php?wph-throw-404 [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^wp-register.php /index.php?wph-throw-404 [L]

RewriteRule ^user-input.php /wp-comments-post.php [L,QSA]

RewriteRule ^php_assests/(.+) /wp-content/$1 [L,QSA]

RewriteCond %{REQUEST_URI} /techweu8574897004$
RewriteRule ^(.*)$ /techweu8574897004/ [R=301,L]
RewriteRule ^techweu8574897004(.*) /wp-admin$1 [L,QSA]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^wp-admin(.+) /index.php?wph-throw-404 [L]

</IfModule>

# END WP Hide & Security Enhancer

## EXPIRES CACHING ##

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/javascript “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 2 days”
</IfModule>
## EXPIRES CACHING ##

#header security
Header set X-XSS-Protection “1; mode=block”
Header set Strict-Transport-Security “max-age=31536000; includeSubDomains; preload”
#Header always append X-Frame-Options DENY
Header always set X-Frame-Options “SAMEORIGIN”
Header set X-Content-Type-Options nosniff
Header set Referrer-Policy “no-referrer”
#end

# BEGIN WordPress
# The directives (lines) between BEGIN WordPress and END WordPress are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# Wordfence WAF
<Files “.user.ini”>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>

# END Wordfence WAF

Post count: 18283

Hello !

Please make sure that you have accomplished all the system requirements as in our documentation here: https://forum.tagdiv.com/requirements-for-newspaper/

Please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.

Thank you !

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.