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) {
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, {
method: 'GET',
method: 'POST',
body: formData,
headers: {
'Authorization': 'Bearer ' + this.$store.state.access_token
}