• Error Access-Control-Allow-Origin

  • Thông báo lỗi bạn gặp và mọi người giúp fix.

Thông báo lỗi bạn gặp và mọi người giúp fix.
Get 25 USD Free To USE VPSSIM
 #1757  by nguyenoanh
 19 Aug 2018 10:14
Về plugin cache mình bó tay.
Về vấn đề edit file all.conf, bạn không nên làm như vậy.
Edit file đó có thể gây lỗi các website khác.
Nếu không dùng thì comment nó lại và thêm hoặc edit trong vhost bạn cần edit.
 #1758  by MacKen
 19 Aug 2018 11:05
Nguyen Oanh cho minh xin lại file : mime.types được không ?

Sau khi mình xóa dòng #add_header X-Frame-Options ALLOWALL;

trong file all.conf

mình làm thế này
Code: Select all
 location ~* \.(?:ico|css|js|jpe?g|png|gif|svg|pdf|mov|mp4|mp3|eot|otf|svg|ttf|woff|woff2)$ {
    #expires 7d;
    #add_header Pragma public;
    #add_header Cache-Control "public";
    #add_header Access-Control-Allow-Origin *;
    #access_log off;
    #gzip_vary on;
   add_header "Access-Control-Allow-Origin" "*";
    expires 1M;
    access_log off;
    add_header Cache-Control "public";
}
thì không còn lỗi lúc nảy nữa mà phát sinh lỗi
Code: Select all
Failed to decode downloaded font: https://fonts.gstatic.com/stats/Oswald/normal/500 
5 dòng

Mình có thêm otf wowf2 trong file mime.types >>>>> giờ nhờ nguyễn oanh send lại file mime.types để mình đối chiếu 2 file đẻ fix lỗi phát sinh
 #1759  by MacKen
 19 Aug 2018 11:09
GIờ xóa cache trình duyệt xong

tắt trinh duyet mở lại không còn lỗi
Code: Select all
Failed to decode downloaded font: https://fonts.gstatic.com/stats/Oswald/normal/500 
mà chuyển sang lỗi :
Code: Select all
[Violation] Forced reflow while executing JavaScript took 42ms
scripts.js?ver=4.9.8:2494 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
NiceScrollClass._bind @ scripts.js?ver=4.9.8:2494
_modernWheelEvent @ scripts.js?ver=4.9.8:2462
NiceScrollClass.bind @ scripts.js?ver=4.9.8:2517
NiceScrollClass.init @ scripts.js?ver=4.9.8:2007
NiceScrollClass @ scripts.js?ver=4.9.8:3342
(anonymous) @ scripts.js?ver=4.9.8:3694
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
$.fn.niceScroll @ scripts.js?ver=4.9.8:3690
(anonymous) @ (index):3731
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
scripts.js?ver=4.9.8:2494 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
NiceScrollClass._bind @ scripts.js?ver=4.9.8:2494
_modernWheelEvent @ scripts.js?ver=4.9.8:2462
NiceScrollClass.bind @ scripts.js?ver=4.9.8:2517
NiceScrollClass.init @ scripts.js?ver=4.9.8:2008
NiceScrollClass @ scripts.js?ver=4.9.8:3342
(anonymous) @ scripts.js?ver=4.9.8:3694
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
$.fn.niceScroll @ scripts.js?ver=4.9.8:3690
(anonymous) @ (index):3731
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
scripts.js?ver=4.9.8:2494 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
NiceScrollClass._bind @ scripts.js?ver=4.9.8:2494
_modernWheelEvent @ scripts.js?ver=4.9.8:2462
NiceScrollClass.bind @ scripts.js?ver=4.9.8:2517
NiceScrollClass.init @ scripts.js?ver=4.9.8:2009
NiceScrollClass @ scripts.js?ver=4.9.8:3342
(anonymous) @ scripts.js?ver=4.9.8:3694
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
$.fn.niceScroll @ scripts.js?ver=4.9.8:3690
(anonymous) @ (index):3731
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
sdk.js:50 [Violation] 'setTimeout' handler took 79ms
 #1760  by MacKen
 19 Aug 2018 11:38
Lỗi phát sinh: features-imports.vulcanize.js:2 [Violation] Added non-passive event listener to a scroll-blocking...... << do trinh duyệt cuối cùng ..check nhiều site đều bị giống minh
Get 25 USD Free To USE VPSSIM