網頁設計 Ckeditor Ckfinder https 沒
網頁設計
- $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/attachments/';
複製代碼
本日把http轉成https
到後台編纂時發現無法瀏覽伺服器及上傳圖片
![](http://www.tshopping.com.tw/data/attachment/forum/202203/13/212843h4dz7bpkkk6hm000.png)
到ckeditor目次下,找到config.js
到ckfinder目錄下,找到config.php
- baseurl = 'https://'+window.location.hostname;
複製代碼
- baseurl = 'http://'+window.location.hostname;
複製代碼
改成
![1.png 1.png](https://pic.pimg.tw/netyea/1672325329-2091983931-g.png?v=1672325338)
就可以正常利用了
文章出處
改成
- $baseUrl = 'http://'.$_SERVER['HTTP_HOST'].'/attachments/';
複製代碼
以下文章來自: