-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CORS headers #89
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/138361463 The labels on this github issue will be updated when the story is started. |
Story to add Staticfile option: https://www.pivotaltracker.com/story/show/136370663 |
We've decided not to include this feature in favor of the new |
It'd be awesome if the buildpack would support CORS headers.
Often when building a webapp there's a need to make a mock version of a particular API to fetch information from. For read-only APIs this can be done easily by nesting JSON files in directories and deploying this to some sort of static hosting service. This is a bit simpler than write a tiny express or sinatra app to server static content with the requisite CORS headers.
I imagine something along the lines of:
ENABLE_CORS=<Access-Control-Allow-Origin header value>
which would dump something like the following into the nginx.conf:
(I just shotgunned a bunch of headers into
Access-Control-Allow-Headers
, it's not an exhaustive list)The text was updated successfully, but these errors were encountered: