Make "preview" use POST
This commit is contained in:
parent
b58bc6254a
commit
4230782091
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user