Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't mark Favorite at local websever or app #25

Open
NaughtDZ opened this issue Jan 20, 2024 · 1 comment
Open

[Bug]: Can't mark Favorite at local websever or app #25

NaughtDZ opened this issue Jan 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working reproducible

Comments

@NaughtDZ
Copy link

Expected Behavior

I can mark an image to My favorite.

Actual Behavior

Using 142eed1
OS:Windows 11
Webbrowser:Edage

After using API login e621,I cant mark favorite whatever "builded desktop app" or just "npm run preview"in local website and It shows "network error",but nothing show up in console.
Other feature is working well,and I can do it on https://material-e621.vercel.app/#/
Did I miss something?

Steps to Reproduce the Problem

No response

@NaughtDZ NaughtDZ added the bug Something isn't working label Jan 20, 2024
@avoonix
Copy link
Owner

avoonix commented Jan 22, 2024

In the network tab it should say something along the lines of cross origin resource sharing error. This is because the proxy only allows localhost:8080 and material-e621.vercel.app (https://github.com/avoonix/material-e621-proxy/blob/2a47c3b4cdcc379972861f74653881974fbff837/util.ts#L26).

For development, you can use pnpm dev --port 8080 (this is probably the correct command, or something similar).

If you want to host material e621 somewhere else, you can deploy your own version of the proxy, or use other proxies like https://github.com/Rob--W/cors-anywhere. You can change the proxy address in https://material-e621.vercel.app/#/settings/account to http://localhost:1234/https://e621.net/ (eg if cors-anywhere is listening on 1234).

As for the desktop app, this is a bug - I will probably have a look at it at some point; in the meantime you can also deploy my proxy or cors-anywhere or something similar yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproducible
Projects
None yet
Development

No branches or pull requests

2 participants