Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang111 authored Oct 11, 2018
1 parent 109b3ee commit cd5e10b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,13 @@ new LinearLayoutManager(this) {
```

* WebView 在 API 21之后,写Cookie的时候默认禁止了跨域写cookie,需要通过代码,来设置开启跨域请求
```
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
CookieManager.getInstance().setAcceptThirdPartyCookies(WebView, true);
}
```


#### 摘自[如下地址](https://github.com/jiang111/awesome-android-tips/blob/master/Authors.md)

Expand Down

0 comments on commit cd5e10b

Please sign in to comment.