add CORS handling
This commit is contained in:
parent
e2b44c10f6
commit
a59717a8db
2
bbpay.py
2
bbpay.py
@ -4,6 +4,7 @@ from os import getenv
|
||||
from oauthlib.oauth2 import BackendApplicationClient
|
||||
from requests_oauthlib import OAuth2Session
|
||||
from flask import Flask, request
|
||||
from flask_cors import CORS
|
||||
from flask_restful import Resource, Api
|
||||
from eth_abi.packed import encode_packed
|
||||
import eth_account
|
||||
@ -16,6 +17,7 @@ from eth_utils import to_wei
|
||||
load_dotenv()
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
api = Api(app)
|
||||
|
||||
class BBPay(Resource):
|
||||
|
@ -3,6 +3,7 @@ oauthlib
|
||||
requests-oauthlib
|
||||
flask
|
||||
flask-restful
|
||||
flask-cors
|
||||
eth-abi
|
||||
eth-account
|
||||
eth-hash[pycryptodome]
|
||||
|
Loading…
x
Reference in New Issue
Block a user