Compare commits

..

2 Commits

Author SHA1 Message Date
hueso
95c65836c5 p2pix explicit CORS origin 2026-06-02 20:05:56 -03:00
hueso
cb71431e20 run on localhost 2026-06-02 20:03:45 -03:00

View File

@@ -17,7 +17,7 @@ from eth_utils import to_wei
load_dotenv()
app = Flask(__name__)
CORS(app)
CORS(app, origins=['https://p2pix.co'])
api = Api(app)
class BBPay(Resource):
@@ -156,7 +156,7 @@ api.add_resource(Release, '/release/<int:numeroSolicitacao>')
if __name__ == '__main__':
if getenv("DEBUG"):
disable_warnings()
app.run(debug=True)
app.run(host='::',debug=True)
else:
from waitress import serve
serve(app, host=getenv("HOST","0.0.0.0"), port=getenv("PORT",5000))
serve(app, host=getenv("HOST","::"), port=getenv("PORT",5000))