mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Remove README documentation changes
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
parent
419885c1c5
commit
c1d217ae1b
1 changed files with 1 additions and 28 deletions
|
|
@ -1,28 +1 @@
|
|||
# Cloudflare Workers
|
||||
|
||||
## Deployment
|
||||
|
||||
Currently, these workers are manually deployed via the Cloudflare Portal UI:
|
||||
|
||||
1. Go to the [Cloudflare Workers dashboard](https://dash.cloudflare.com/)
|
||||
2. Select the appropriate worker
|
||||
3. Copy and paste the updated code from the respective `.js` file
|
||||
4. Click "Save and Deploy"
|
||||
|
||||
## filterlists-api-host-rewrite-worker.js
|
||||
|
||||
This worker is deployed at `api.filterlists.com` and:
|
||||
|
||||
- Proxies requests to the Azure App Service backend
|
||||
- Handles CORS preflight (OPTIONS) requests
|
||||
- Adds CORS headers to responses for allowed origins
|
||||
- Enables Cloudflare edge caching for API responses
|
||||
|
||||
### Allowed Origins
|
||||
|
||||
- `https://filterlists.com`
|
||||
- `https://next.filterlists.com`
|
||||
- `http://localhost:3000`
|
||||
- Azure Static Web Apps staging environments matching the pattern: `https://nice-water-05873140f-*.eastus2.5.azurestaticapps.net`
|
||||
|
||||
**Important**: After updating this file, remember to manually deploy the changes via the Cloudflare Portal UI.
|
||||
Currently manually copy/paste/deploy via Cloudflare Portal UI.
|
||||
|
|
|
|||
Loading…
Reference in a new issue