Update app.py
Browse files
app.py
CHANGED
|
@@ -20,15 +20,6 @@ load_dotenv()
|
|
| 20 |
|
| 21 |
app = FastAPI()
|
| 22 |
|
| 23 |
-
origins = ["*"]
|
| 24 |
-
|
| 25 |
-
app.add_middleware(
|
| 26 |
-
CORSMiddleware,
|
| 27 |
-
allow_origins=origins,
|
| 28 |
-
allow_credentials=True,
|
| 29 |
-
allow_methods=["*"],
|
| 30 |
-
allow_headers=["*"],
|
| 31 |
-
)
|
| 32 |
|
| 33 |
class Proxy(BaseModel):
|
| 34 |
ip: str
|
|
|
|
| 20 |
|
| 21 |
app = FastAPI()
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
class Proxy(BaseModel):
|
| 25 |
ip: str
|