Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ uvicorn app.main:app --reload
| DELETE | `/profile/{username}` | Delete a profile |
| GET | `/search?q=term` | Search profiles |

## CORS Configuration

The application includes CORS middleware that allows requests from all origins.
This is configured in `app/main.py`:

```python
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_methods=["*"],
allow_headers=["*"],
)
```

> **Note:** The current configuration allows all origins (`*`), which is suitable for development.
> For production deployments, restrict `allow_origins` to your specific frontend domain(s).

## Running Tests

```bash
Expand Down