Make "preview" use POST

This commit is contained in:
Peter Stuifzand 2021-10-20 22:17:55 +02:00
parent b58bc6254a
commit 4230782091

View File

@ -120,9 +120,13 @@
}, },
showFeed(feed) { showFeed(feed) {
feed.loading = true feed.loading = true
let url = this.$store.state.microsubEndpoint + '?action=preview&url=' + encodeURIComponent(feed.url) let url = this.$store.state.microsubEndpoint
let formData = new URLSearchParams();
formData.set('action', 'preview')
formData.set('url', feed.url)
return fetch(url, { return fetch(url, {
method: 'GET', method: 'POST',
body: formData,
headers: { headers: {
'Authorization': 'Bearer ' + this.$store.state.access_token 'Authorization': 'Bearer ' + this.$store.state.access_token
} }