Spaces:
Runtime error
Runtime error
Update pytrade.py
Browse files22 unmodified lines2324252627282922 unmodified lines# Allow your Angular Space + local devFRONTEND_ORIGIN = os.environ.get("FRONTEND_ORIGIN","https://pykara-pytrade.static.hf.space,https://localhost:4200")allowed = [o.strip() for o in FRONTEND_ORIGIN.split(",") if o.strip()]CORS(app, resources={r"/*": {"origins": allowed}}, supports_credentials=True)22 unmodified lines2324252627282922 unmodified lines# Allow your Angular Space + local devFRONTEND_ORIGIN = os.environ.get("FRONTEND_ORIGIN","https://pykara-py-trade.static.hf.space,https://localhost:4200")allowed = [o.strip() for o in FRONTEND_ORIGIN.split(",") if o.strip()]CORS(app, resources={r"/*": {"origins": allowed}}, supports_credentials=True)
pytrade.py+1-1