Skip to content

Commit

Permalink
fix(ui): add cookie on api call
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo authored and Skraye committed Jan 23, 2024
1 parent 7463224 commit b1e11c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/stores/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
actions: {
loadFeeds({commit}, options) {
return axios.get(API_URL + "/v1/feeds", {
withCredentials: true,
params: {
iid: options.iid,
uid: options.uid,
Expand Down Expand Up @@ -58,7 +59,7 @@ export default {

dispatch("posthogEvents", mergeData)

return axios.post(API_URL + "/v1/reports/events", mergeData);
return axios.post(API_URL + "/v1/reports/events", mergeData, {withCredentials: true});
},
posthogEvents(_, data) {
const type = data.type;
Expand Down

0 comments on commit b1e11c7

Please sign in to comment.