Skip to content

Website seems to be broken on FF due to CORS #2

@metiulekm

Description

@metiulekm

When I upload an image to https://daspartho.github.io/is-it-huggable/, no result is shown and I get the following errors in the dev console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://hf.space/embed/daspartho/is-it-huggable/+/api/predict/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 301.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://hf.space/embed/daspartho/is-it-huggable/+/api/predict/. (Reason: CORS request did not succeed). Status code: (null).

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.

https://huggingface.co/spaces/daspartho/is-it-huggable works perfectly well. I am running Firefox 116.0.3 on Linux. Did not attempt to use anything else.

Amazing idea for the project BTW 😸

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions