CORS doesn't work on the piefed API
submitted by
https://vger.social/pictrs/image/52244840-beab-44d7-93fc-ed438fac0e87.jpeg
Not sure where to post this: the Piefed API doesn't support CORS, at least testing against piefed.social, so requests from webapps like photon, alexandrite, voyager via PWA would not work.
Also, is there a way to pass a fedilink to resolve, like Lemmy resolveObject?
And lastly, how is Piefed planning on handling updates to the API for lemmy v1? Things like varying object type arrays being combined, and new/updated sorts.
Thanks!
I've added CORS now :)
Nice, thanks! I’ll try it again soon
I checked piefed.social and I'm still getting CORS errors. Does the change still have yet to be deployed there?
It's working for me. Try this:
Ah, that works, but this doesn't:
```html
```
nor this:
```html
```
Ok technically those are not part of the API ;-)
I've put CORS headers on everything now, go for it.
<insert word of praises and love for the reactivity here>
@aeharding@vger.social test
I don't think so yet...I think this issue is tracking it.
I can't really help with the others, but you might want to hop on the piefed matrix chat (#piefed-general:matrix.org). @rimu@piefed.social hangs out there and would have much better answers (during kiwi hours anyway).
@aeharding@vger.social test