Skip to content

Fetch error #4

@heymartinadams

Description

@heymartinadams

Followed your example and got the following error, using both a test version (on localhost:3000) and on a website (with https://). Might you know how to work around it?

Fetch API cannot load http://www.morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932.
Redirect from 'http://www.morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932'
to 'https://morphemeris.com/ephemeris.php?date=1974-02-17T23%3A30Z&lat=37.4381927&lon=-79.18932'
has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:3000' is therefore not allowed access.
If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

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