Skip to content

Commit

Permalink
docs:添加setCookie说明
Browse files Browse the repository at this point in the history
  • Loading branch information
durunsong committed Nov 20, 2024
1 parent 40b62b3 commit f7ed278
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ pnpm lint
<img src="./src/assets/case-img/m-3.png" alt="Snipaste_6.png" style="width: 30%;">
</div>

### Notes

- This project utilizes the vercel deployment, so you need scientific Internet access to access the normal
- As vercel and github subdomain can not setcookie, so the project manually set the cookie, token is explicitly transferred set in the cookie, in the formal project need to modify this part, the back-end part of the setcookie code, you can refer to!

## 🌐Internationalized multilingual automated translation program

#### Preparation: Baidu translation api ---------> appid appkey
Expand Down
5 changes: 5 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ pnpm test
<img src="./src/assets/case-img/m-3.png" alt="Snipaste_6.png" style="width: 30%;">
</div>

### 注意事项

- 本项目由于利用的是vercel部署,所以需要科学上网才能正常访问
- 由于vercel和github的子域名不能setcookie,所以项目中手动设置的cookie,token是明文传输设置在Cookie中的,在正式项目中需要修改这一部分,后端部分有setcookie的代码,可以参考!

## 🌐国际化多语言自动化翻译程序

#### 准备:百度翻译api---------> appid appkey
Expand Down

0 comments on commit f7ed278

Please sign in to comment.