graphile / starter

Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
https://graphile-starter.herokuapp.com
Other
1.75k stars 220 forks source link

Add CORS with allowed origins #195

Closed justinr1234 closed 1 year ago

justinr1234 commented 4 years ago

This adds CORS to the app. It allows you to specify, via environmental variables, which allowed origins you can use. This is useful for a variety of scenarios and is specifically useful in the case of using this server for an API or accessing it from other origins (like using Ionic).

Allow us to pass a list of domains allowed for CORS:

CORS_ALLOWED_URLS=http://localhost:8100,https://mobile.mydomain.com
benjie commented 1 year ago

[semi-automated message] Hi, there has been no activity in this issue for a while so I'm closing it to keep the issues/pull requests manageable. If this is still an issue, please re-open with additional details.