Skip to content

No 'Access-Control-Allow-Origin' header is present on the requested resource #2

Description

@raghuvaran

I'm trying to make a fetch request to MARTA's RESTFUL webservice, but couldn't use the data that is returned from the server as there is no 'Access-Control-Allow-Origin' field in the response header.

After a quick research I figured that the response header should look something like the following in order to make use of the API with requests originating from browsers (client-side). MDN link

Access-Control-Allow-Origin: *

Can anyone advice on this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions