Edit nginx/nginx.conf to enable CORS#2580
Edit nginx/nginx.conf to enable CORS#2580ttmc merged 2 commits intobigchaindb:masterfrom ttmc:fix-nginx-conf-for-cors
Conversation
|
Before I merge this PR, I will test the change in the testnet. |
Codecov Report
@@ Coverage Diff @@
## master #2580 +/- ##
=======================================
Coverage 93.59% 93.59%
=======================================
Files 45 45
Lines 2684 2684
=======================================
Hits 2512 2512
Misses 172 172 |
|
I tested this by updating the nginx/nginx.conf file on the testnet and then using the "Get Started" page of beta.bigchaindb.com (based on bigchaindb/site#270). It didn't work. Then I looked at the nginx.conf template for the web proxy, and noticed this line in the 'OPTIONS' block had more stuff:
So I changed that line in the live testnet, and then the "Get Started" page worked for beta.bigchaindb.com, yay! I will make a commit to update this PR accordingly. |
I'm not sure if this will work. I based it on:
https://github.com/bigchaindb/bigchaindb/blob/master/k8s/nginx-http/container/nginx.conf.template