-
Notifications
You must be signed in to change notification settings - Fork 4
/
costants.py
41 lines (39 loc) · 1.62 KB
/
costants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VALID_SCHEMA = {
"type": "object",
"properties": {
"csp-report": {
"type": "object",
"properties": {
"blocked-uri": {
"type": "string"
},
"document-uri": {
"type": "string"
},
"original-policy": {
"type": "string"
},
"referrer": {
"type": "string"
},
"violated-directive": {
"type": "string"
},
"line-number": {
"type": "integer",
"optional": True
},
"source-file": {
"type": "string",
"optional": True
},
"column-number": {
"type": "integer",
"optional": True
}
}
}
}
}
MAX_FIELD_SIZE = 300
DEFAULT_LIMITS=["2000 per day", "500 per hour"]