Skip to content

Add Access-Control-Allow-Origin header to harp server (CORS) #512

@Prinzhorn

Description

@Prinzhorn

I couldn't find any existing discussion about this, maybe I'm doing something exotic. Locally I have my node app on localhost:3000 and harp on localhost:9000 for serving static files (which is done via S3/CloudFront in production, with precompiled SASS etc.). The sad thing is that fonts/fontawesome won't work correctly:

Font from origin 'http://localhost:9000' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

Is adding an option to enable CORS for harp server something you would consider doing?

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