or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
如何製作一套 JavaScript 的熱點圖 library - Kewang
歡迎來到 MOPCON 2020 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →共筆入口:https://hackmd.io/@mopcon/2020
手機版請點選上方 按鈕展開議程列表。
keyword
leaftlet 比例是10:1將比例放上去就知道怎麼顯示(較難被爬蟲爬出來)
少了讓Access control allow origin會比較難被用到 所以就fail掉了
解:1.let all source can access api.js
2.api key外流 同一把api key>會影響到原始網站會花一堆錢 (燒RRRRR
解:check refere 在req.headers.referer;
add frame
add allow list
HTTP網域偽造
會影響到原始網站會花一堆錢
解:1.add allow list only HTTPS
create self-signed
解:
browser >server -會先打get http://example.com(用8080run)
server <retuen -回301 redirect to http://example.com
browser >server -get http://example.com
browser <server -return page &HSTS header
hsts preload list:
hsts preload submission requirements
Strict-Transport-Security:max-age=63072000; includeSubDomians;perload
hsts preload url(https://hstspreload.org/?domain=aikq.de)
hsts preload 花至少半年時間才能更新到其他瀏覽器上面
Conclusion
應用端
申請api key
增加允許網域名單
十行程式碼結束
使用SemVer更新更方便
開發端
解決CORS:使用Access-control-Allow_Origin
解決網域偽造:HSTS
用 https 取代 http
SVCB/HTTPS

GSLIN 文章url(https://blog.gslin.org/archives/2020/10/04/9737/讓瀏覽器直接連-https-的-svcb-https/)
最後還會 return 回去沒拍到 orz
聊天區
tags:
MOPCON 2020