Web
Tất cả những gì mình note lại liên quan đến Web và kỹ thuật Web
-
WordPress fix lỗi This request has been blocked; the content must be served over HTTPS.
WordPress fix lỗi This request has been blocked; the content must be served over HTTPS. Thông tin lỗi Mixed Content: The page at 'https://abc.com/uio' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://abc.com/uio/wp/v2/'. This request has been blocked; the content must be served over HTTPS. À, như vậy là do có những link nó nhận là http, trong khi domain mình đang dùng là https, thế là bị trình duyệt chặn, do vậy mình cài plugin Really Simple SSL giúp tự động chuyển các link http sang https hết. Vậy là ok Fix lỗi This request has been blocked; the content must be served over HTTPS. Install plugin…
-
Điều khoản Dịch vụ Trực tuyến Google AdSense, Admob bằng tiếng Việt (04/2022)
Điều khoản Dịch vụ Trực tuyến Google AdSense, Admob bằng tiếng Việt (04/2022) Hôm nay tình cờ vào Google AdSense, Google Admob thấy nó thông báo thay đổi chính sách như sau, tóm lại muốn dùng của nó tiếp thì phải chấp nhận thôi :') Điều khoản Dịch vụ Trực tuyến Google AdSense Chào mừng bạn đến với AdSense! Cảm ơn bạn đã quan tâm đến các dịch vụ tìm kiếm và quảng cáo của chúng tôi (sau đây gọi tắt là "Các Dịch Vụ")! Khi sử dụng Các Dịch Vụ của chúng tôi, bạn đồng ý với (1) các Điều khoản Dịch vụ này, (2) Các Chính sách về…
-
Javascript Date to ISO String +7
Javascript Date to ISO String +7 Mục đích để chuyển từ định dạng 2020-01-19 17:00:00 sang định dạng 2020-01-19T17:00:00.000Z var d = new Date('2020-01-19 17:00:00'); d.setHours(d.getHours() + 7); d.toISOString();
-
FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP
FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP Nhận dạng lỗi Mixed Content: The page at 'https://aaaa' was loaded over HTTPS, but requested an insecure stylesheet 'http://aaaa/static/dist/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS. Cách sửa FastAPI (gunicorn) bị lỗi Mixed Content HTTPS vs HTTP Bổ sung thẻ <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> vào file template html của bạn Another workaround is to add: <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> to index.html file in frontend. It will upgrade all requests from http to https (also when run locally, so it may not be the best workaround) Tham khảo https://stackoverflow.com/questions/63511413/fastapi-redirection-for-trailing-slash-returns-non-ssl-link
-
Cloudflare bị lỗi Error 525 SSL handshake failed
Cloudflare bị lỗi Error 525 SSL handshake failed https://blog.hostvn.net/chia-se/huong-dan-sua-loi-ssl-handshake-failed-khi-dung-cloudflare.html Lỗi 525 chỉ ra rằng việc xác thực SSL giữa Cloudflare và máy chủ web của bạn không thành công. Lỗi này chỉ xảy ra khi bạn đang sử dụng chế độ SSL Cloudflare Full hoặc Full (Strict). Điều này thường xảy ra do cấu hình trong máy chủ web của bạn, khi lỗi xảy ra, bạn sẽ thấy thông báo Error 525: SSL handshake failed. Các nguyên nhân phổ biến nhất của lỗi này là: Chứng chỉ SSL hợp lệ được cài đặt trên trang web không hợp lệ Cổng 443 trên máy chủ web của bạn bị đóng. SNI không được trang web…
-
WordPress Disabling forced FTP credentials for any updates
WordPress Disabling forced FTP credentials for any updates WordPress tắt chế độ cài đặt theme, plugin bằng FTP, cho phép upload hay tải trực tiếp https://wordpress.org/support/topic/disabling-forced-ftp-credentials-for-any-updates/ On wp-config add: define ( ‘FS_METHOD’, ‘direct’); Ví dụ // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('FS_METHOD','direct'); define( 'DB_NAME', 'azuzu_ml' ); /** Database username */ define( 'DB_USER', 'root' );
-
Protected: Backup Additional CSS (Custom CSS) WordPress
There is no excerpt because this is a protected post.
-
PostgreSQL force rename database
PostgreSQL force rename database PostgreSQL ép đổi tên Database -- Tắt hết connect đến DB SELECT pg_terminate_backend (pid) FROM pg_stat_activity WHERE datname = 'nongnghiepdongnai2'; -- Đổi tên DB ALTER DATABASE nongnghiepdongnai2 RENAME TO nongnghiepdongnai; https://www.geeksforgeeks.org/postgresql-rename-database/
-
Đồng bộ – Bất đồng bộ AngularJs
-
[Javascript] Tìm cụm từ trong object – How to filter JSON data by properties that contain certain strings?
-
Sketch to Code
-
[Sưu tầm] Chạy ứng dụng Flask với Gunicorn trên ubuntu
-
Using .htaccess to restrict access to Files and Directories
-
PHP luôn báo Session expired, please login again
-
Tạo ảnh thumbnails với python