mirror of
https://github.com/nikdoof/django-eveigb.git
synced 2025-12-24 05:49:22 +00:00
EVEIGB_SECURE_HEADERS mode.
This enables some basic validation on headers coming into the client and validation of the data in the headers. Hopefully to provide a few extra roadblocks against fake/corrupt requests.
This commit is contained in:
18
README.md
18
README.md
@@ -8,10 +8,10 @@ This library/application allows you to make use of EVE's in-game browser and mos
|
||||
Installation
|
||||
------------
|
||||
|
||||
1. Install the package with setup.py
|
||||
2. Add 'eveigb' to your INSTALLED_APPS in your settings.py
|
||||
3. Add eveigb.middleware.IGBMiddleware to MIDDLEWARE_CLASSES
|
||||
4. Add eveigb.context_processors.igb to TEMPLATE_CONTEXT_PROCESSORS if you wish to make use of the template variables
|
||||
1. Install the package with `setup.py`
|
||||
2. Add `eveigb` to your `INSTALLED_APPS` in your `settings.py`
|
||||
3. Add `eveigb.middleware.IGBMiddleware` to `MIDDLEWARE_CLASSES`
|
||||
4. Add `eveigb.context_processors.igb` to `TEMPLATE_CONTEXT_PROCESSORS` if you wish to make use of the template variables
|
||||
|
||||
|
||||
Usage
|
||||
@@ -19,5 +19,11 @@ Usage
|
||||
|
||||
The context processor makes a few variables available in your templates:
|
||||
|
||||
* is_igb - Indicates if the client is a EVE IGB client
|
||||
* is_igb_trusted - Indicates if the client has trusted the site
|
||||
* `is_igb` - Indicates if the client is a EVE IGB client
|
||||
* `is_igb_trusted` - Indicates if the client has trusted the site
|
||||
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
* `EVEIGB_SECURE_HEADERS` - This will attempt to validate, as much as it can, the client as a IGB client.
|
||||
Reference in New Issue
Block a user