Chrome packaged apps 與 Content Security Policies.

延續前一篇的Chrome Apps 開發 samples
可以先一起走一遍 follow the official Codelab presented at Google I/O 做中學。

其中有講到一些觀念,

像是Chrome Apps 不會是靠網路,都是local控制,使用者可以完整控制App的週期。開發者要注意的是,需要確保資料都是local儲存,offline可以讀取,當有網路的時候可以sync。

另外本文重點就是Content Security Policies (CSP)

Chrome packaged apps platform force your app to be fully compliant with Content Security Policies. This includes not being able to directly load DOM resources, like images, fonts and CSS's from outside of your app.

If you want to show an external image in your app, you need to request it via XHR, transform it into a Blob and create an ObjectURL. This ObjectURL can then be added to the DOM, because it refers to an in-memory item in the context of the app.


覺得微妙,要好好研究一下。
未完待續 Orz

To learn more about how to develop Chrome Apps:

留言

Google Search

推薦內容橫式

本月熱門文章

什麼是 OTA ?

北京故宮首訪,一窺清宮秘史 大玉兒 & 甄嬛

台北市長候選人沈伯洋美國行程

中聯油脂後台有多硬? 台中市食安問題疑點重重

"自立 自理 尊嚴" 老人的生活目標 !!!

5945參加首屆網路創業平台創意秀

海角七號主CP 范逸臣 & 田中千繪!留下來或我跟你走

[FAANG面試] Amazon/AWS 領導力準則 14 Amazon Leadership Principles

【食安追蹤】大老交保、政客上街!如何查詢蔣萬安、盧秀燕等 7/25 凱道要角是否收過毒油廠政治獻金?

這個網誌中的熱門文章

Android應用開發豆知識:利用 adb 安裝 apk 到裝置上

【臉書無法登入】Facebook帳號卡安全檢查?無預警被停用與英文回報申訴教學

Android 中文輸入法 官方版 ! Gboard - Google 鍵盤 開始支援注音輸入啦

Google Play 推薦Android app 誠徵App排行榜

北京故宮首訪,一窺清宮秘史 大玉兒 & 甄嬛

[家教][社會觀察] 建中教我的事 沒上建中被父母親折磨? 在建中到底是如何 ...

[FAANG面試] Amazon/AWS 領導力準則 14 Amazon Leadership Principles

[品質控制] 什麼是Sanity test ? 軟體測試常見名詞整理 包含不同部門的測試人員負責範圍

Acer ICONIA Smart S300 更新後越來越好 Acer也有出手機?!

[新鮮人找工作] 職場名詞解釋 AE FAE Pre-sales Post-sales