Skip to content
Public Ticket #15226

inspect find some error

Conversation thread

grandiaseh replied

Customer Reply

Hi , very sorry, no more issue.

Thank you so much. 

PenciDesign replied

Staff Reply

Hi,

I still didn't see any error like that from my-end when you're using CDN - check this image: http://prntscr.com/w6b2ta

Best Regards,

PenciDesign

grandiaseh replied

Customer Reply

Sorry, asking again.

after disble CDN,the Access-Control-Allow-Origin issue is gone. but active CDN , the issues come back. 

Thank for help

grandiaseh replied

Customer Reply

Thank you. 

PenciDesign replied

Staff Reply

Hi,

I see the issues gone from my-end: http://prntscr.com/w5xix5

You can check again your site on anonymous browsers to get correct results.

Best Regards,

PenciDesign

grandiaseh replied

Customer Reply

Hi, 

I modify the htaccess file at root .

# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^mysangui\\.com$ [OR]
RewriteCond %{SERVER_NAME} ^z5w\\.d57\\.myftpupload\\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
Header always set Content-Security-Policy "upgrade-insecure-requests"
</IfModule>
# END GD-SSL

# BEGIN WordPress
# 在含有 BEGIN WordPress 及 END WordPress 標記的這兩行間的指示詞內容為動態產生,
# 且應僅有 WordPress 篩選器能進行修改。對這兩行間任何指示詞內容的變更,
# 都會遭到系統覆寫。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

<ifmodule mod_headers.c="">
  <filesmatch "\\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"="">
    Header set Access-Control-Allow-Origin "*"
  </filesmatch>
</ifmodule>

grandiaseh replied

Customer Reply

Hi,

Thank for help, 

but Look like the problem not solve yet. sorry 

Access to font at 'https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/fontawesome-webfont.woff2' from origin 'https://mysangui.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff2:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/icomoon.woff' from origin 'https://mysangui.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
icomoon.woff:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/weathericons.woff2' from origin 'https://mysangui.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
weathericons.woff2:1 

PenciDesign replied

Staff Reply

Hi,

For all that issues - it related with the CORS policy issue - please add more this code to your .htaccess file to solve it:

<ifmodule mod_headers.c="">
  <filesmatch "\\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"="">
    Header set Access-Control-Allow-Origin "*"
  </filesmatch>
</ifmodule>

Best Regards,

PenciDesign

grandiaseh started the conversation

Conversation Start

Hi, below is my problem, I dont know how to fix. 


<link rel=preload> has an unsupported `type` value
(index):1 Access to font at 'https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/icomoon.woff' from origin 'https://mysangui.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
icomoon.woff:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to font at 'https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/fontawesome-webfont.woff2' from origin 'https://mysangui.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
fontawesome-webfont.woff2:1 Failed to load resource: net::ERR_FAILED
jquery-migrate.min.js?ver=3.3.2&time=1608209617:2 JQMIGRATE: Migrate is installed, version 3.3.2
(index):1 The resource https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/icomoon.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
(index):1 The resource https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/weathericons.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
(index):1 The resource https://secureservercdn.net/160.153.137.218/z5w.d57.myftpupload.com/wp-content/themes/soledad/fonts/fontawesome-webfont.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
DevTools failed to load SourceMap: Could not load content for https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Want to join this conversation or access attachments? Sign in first.