Skip to content

Commit

Permalink
Add CORS to market data (#1096)
Browse files Browse the repository at this point in the history
* chore: add env variables to config

* chore: add cors to market data api

---------

Co-authored-by: ns212 <nikolai@interlay.io>
  • Loading branch information
tomjeatt and ns212 authored Apr 4, 2023
1 parent 0cdaf10 commit d837dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/market_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from flask import Flask, request, jsonify
from flask_cors import CORS
import requests
import os

app = Flask(__name__)
CORS(app)

api_key = os.environ.get("CG_API_KEY")

Expand Down
3 changes: 2 additions & 1 deletion api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Flask
flask-cors
requests
python-dateutil
python-dateutil

2 comments on commit d837dcf

@vercel
Copy link

@vercel vercel bot commented on d837dcf Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d837dcf Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.