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

cross origin request blocked #48

Open
goldstargloww opened this issue Jun 18, 2024 · 1 comment
Open

cross origin request blocked #48

goldstargloww opened this issue Jun 18, 2024 · 1 comment

Comments

@goldstargloww
Copy link

the thing won't do the thing anymore

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://discord.com/api/v10/users/@me/guilds. (Reason: CORS request did not succeed). Status code: (null).
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
    <anonymous> https://thatiemsz.github.io/Discord-Emoji-Downloader/index.a4aa343c.js:2
    AsyncFunctionThrow self-hosted:803
    (Async: async)
    dispatch https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    handle https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    (Async: EventListener.handleEvent)
    add https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    Te https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    each https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    each https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    Te https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    on https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    t https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    <anonymous> https://thatiemsz.github.io/Discord-Emoji-Downloader/index.a4aa343c.js:2
    l https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    c https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    (Async: setTimeout handler)
    a https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    u https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    fireWith https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    fire https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    u https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    fireWith https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    ready https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    _ https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    (Async: EventListener.handleEvent)
    <anonymous> https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    <anonymous> https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
    <anonymous> https://thatiemsz.github.io/Discord-Emoji-Downloader/index.abc02158.js:1
@NanashiTheNameless
Copy link
Contributor

NanashiTheNameless commented Aug 8, 2024

you can try the version from PR #51 (broken for an unrelated reason, seems manual version is the only option at this time) or my "personal preference version" https://github.com/NanashiTheNameless/Discord-Emoji-Downloader
you can also use the manual version if you know exactly what server you want

api V10 appears to not work as 6 is still the default V9 does work however

you can use the following curl command for the manual version
curl 'https://discordapp.com/api/v9/guilds/<SERVER ID>' --compressed -H 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.3' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://discord.com/app' -H 'Authorization: <TOKEN>'

edit: V10 Does work, but with https://discord.com/api/v10/ and not https://discordapp.com/api/v10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants