This pull request adds the cors middleware to Bertly, to allow web applications (like Phoenix) to talk directly to it (rather than relying on a proxy backend route). I've also added phoenix.test to our list of whitelisted domains so we can test Bertly when doing local development.
How should this be reviewed?
👀
Any background context you want to provide?
This unlocks some cleanup work in Phoenix, done in DoSomething/phoenix-next#2317.
What's this PR do?
This pull request adds the
cors
middleware to Bertly, to allow web applications (like Phoenix) to talk directly to it (rather than relying on a proxy backend route). I've also addedphoenix.test
to our list of whitelisted domains so we can test Bertly when doing local development.How should this be reviewed?
👀
Any background context you want to provide?
This unlocks some cleanup work in Phoenix, done in DoSomething/phoenix-next#2317.
Relevant tickets
References Pivotal #174166833.
Checklist