mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 20:48:25 +00:00
Update cors headers regex (#168)
This commit is contained in:
parent
0bce568bce
commit
489c1a700e
1 changed files with 2 additions and 0 deletions
|
@ -144,6 +144,8 @@ CORS_ALLOW_METHODS = (
|
||||||
'GET'
|
'GET'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
CORS_URLS_REGEX = r'^/api/.*$'
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_RENDERER_CLASSES': (
|
'DEFAULT_RENDERER_CLASSES': (
|
||||||
'rest_framework.renderers.JSONRenderer',
|
'rest_framework.renderers.JSONRenderer',
|
||||||
|
|
Loading…
Add table
Reference in a new issue