Skip to content

Commit 21c1e5e

Browse files
committed
fix(plugin): fetch with credentials for same origin request
1 parent 8be5ffd commit 21c1e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function getContentAsync(contentURL) {
1919
return decodeURIComponent(escape(atob(response.content)));
2020
});
2121
} else {
22-
return fetch(contentURL).then(function(response) {
22+
return fetch(contentURL, { credentials: "same-origin" }).then(function(response) {
2323
return response.text();
2424
});
2525
}

0 commit comments

Comments
 (0)