hadithhouse / HadithHouseApi

Backend for Hadith House
http://www.hadithhouse.net/
MIT License
3 stars 3 forks source link

Enable CORS #426

Closed rafidka closed 6 years ago

rafidka commented 6 years ago

Since the web and the API have been split and they are going to be mapped to different sub-domains and/or ports, we need to make sure we enable CORS. For example, a request from www.hadithhouse.net to api.hadithhouse.net should be possible. Also, to help with running the website locally without having to install the API, it is helpful to be able to make requests from, e.g., local.haidthouse.net:8000 to api-dev.hadithhouse.net, where local.hadithhouse.net is a local mapping to 127.0.01 in hosts file.