providers/.docs/content/3.In-depth/2.flags.md

11 lines
572 B
Markdown
Raw Normal View History

2023-12-26 22:35:58 +00:00
# Flags
2023-12-29 15:59:30 +00:00
Flags is the primary way the library seperates entities between different environments.
For example some sources only give back content that has the CORS headers set to allow anyone, so that source gets the flag `CORS_ALLOWED`. Now if you set your target to `BROWSER`, sources without that flag won't even get listed.
2023-12-26 23:15:23 +00:00
2023-12-29 15:59:30 +00:00
This concept is applied in multiple away across the library.
## Flag options
- `CORS_ALLOWED`: Headers from the output streams are set to allow any origin.
- `IP_LOCKED`: The streams are locked by ip, requester and watcher must be the same.