Skip to content

Commit

Permalink
fix: http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Jan 14, 2020
1 parent 1769981 commit c35fd65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/src/components/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export default {
debug: true,
localData: data,
credentials: 'omit', // cors下关闭
headers: {
Accept: null,
'X-Requested-With': null
},
onAfter: ({ response }) => {
return {
status: 1,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wya/doc",
"version": "1.0.3",
"version": "1.0.4",
"description": "wya-doc for js",
"main": "index.js",
"files": [
Expand Down

0 comments on commit c35fd65

Please sign in to comment.