Contents ...
udn網路城邦
Ckeditor Ckfinder https 沒法瀏覽伺服器及上傳問題
2024/03/06 00:31
瀏覽13
迴響0
推薦0
引用0

本日把http轉成https


到後台編纂時發現無法瀏覽伺服器及上傳圖片





到ckeditor目次下,找到config.js

1.png

  1. baseurl = 'http://'+window.location.hostname;
複製代碼

到ckfinder目錄下,找到config.php

網站架設

網站架設改成

  1. $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/attachments/';
網站架設 複製代碼

改成

  1. baseurl = 'https://'+window.location.hostname;
複製代碼
  1. $baseUrl = 'http://'.$_SERVER['HTTP_HOST'].'/attachments/';
複製代碼



就能正常使用了


文章出處

全站分類:不分類 不分類
自訂分類:不分類
上一則: 若何用藍芽Bluetooth連線節制 Arduino

限會員,要發表迴響,請先登入