Skip to content

https://developer.nps.gov/api/v1/events CORS ERROR #6

@JoshuaMichaelHanson

Description

@JoshuaMichaelHanson

Hello when using the API the https://developer.nps.gov/api/v1/parks endpoint works fine while
https://developer.nps.gov/api/v1/events gives a CORS errror

(Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

Seems this might be a server configuration issue. Calling from a React 18 application. Can setup a backend proxy but that is not on my list right now. Only tried the 2 endpoints will let you know if there are others. Maybe its something to do with my Production deployment since it works locally just not when deployed to the VPS. Might be on my end but from what I have read seems on the API server end.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions