Skip to content

Commit 8f30663

Browse files
committed
Added app.mosquitoalert.com to COR
1 parent ec96199 commit 8f30663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tigaserver_project/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
CORS_ALLOWED_ORIGINS = [
117117
"http://webserver.mosquitoalert.com",
118118
"http://www.mosquitoalert.com",
119+
"https://app.mosquitoalert.com",
119120
]
120121

121122
ROOT_URLCONF = 'tigaserver_project.urls'
@@ -290,7 +291,8 @@
290291
"ErrorCode429Enum": "drf_standardized_errors.openapi_serializers.ErrorCode429Enum.choices",
291292
"ErrorCode500Enum": "drf_standardized_errors.openapi_serializers.ErrorCode500Enum.choices",
292293
},
293-
'POSTPROCESSING_HOOKS': [], # NOTE: needed for the openapi-generator
294+
# 'POSTPROCESSING_HOOKS': [], # NOTE: needed for the openapi-generator
295+
"POSTPROCESSING_HOOKS": ["drf_standardized_errors.openapi_hooks.postprocess_schema_enums"],
294296
'ENUM_ADD_EXPLICIT_BLANK_NULL_CHOICE': False, # See: https://github.com/tfranzel/drf-spectacular/issues/235
295297
'ENUM_GENERATE_CHOICE_DESCRIPTION': False,
296298
'EXTENSIONS_INFO': {

0 commit comments

Comments
 (0)