DoSomething / bertly

🔗 A serverless link shortener.
https://dosome.click/wq544
MIT License
2 stars 1 forks source link

Allow Phoenix to talk directly to Bertly. #85

Closed DFurnes closed 4 years ago

DFurnes commented 4 years ago

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 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.

Relevant tickets

References Pivotal #174166833.

Checklist