Fix CORS credentials
This commit is contained in:
parent
00e81b8b26
commit
cc14c710c4
2 changed files with 1 additions and 2 deletions
|
@ -18,6 +18,7 @@ export default {
|
||||||
Symbol: symbol,
|
Symbol: symbol,
|
||||||
diaryUrl,
|
diaryUrl,
|
||||||
},
|
},
|
||||||
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
document.cookie = response.headers['Set-Cookie'];
|
document.cookie = response.headers['Set-Cookie'];
|
||||||
|
|
|
@ -71,9 +71,7 @@ export default Vue.extend({
|
||||||
const index = diary.diaries.findIndex((item) => item.name === this.selectedDiary);
|
const index = diary.diaries.findIndex((item) => item.name === this.selectedDiary);
|
||||||
const response = await login.login(this.login, this.password,
|
const response = await login.login(this.login, this.password,
|
||||||
'powiatwulkanowy', diary.diaries[index].url);
|
'powiatwulkanowy', diary.diaries[index].url);
|
||||||
console.log(response);
|
|
||||||
this.$store.state.loginData = response.data;
|
this.$store.state.loginData = response.data;
|
||||||
console.log(this.$store.state.loginData);
|
|
||||||
|
|
||||||
if (this.$store.state.loginData.data.students.data.length > 1) {
|
if (this.$store.state.loginData.data.students.data.length > 1) {
|
||||||
this.$store.state.isLoading = false;
|
this.$store.state.isLoading = false;
|
||||||
|
|
Loading…
Reference in a new issue