final version

This commit is contained in:
2025-04-28 15:37:49 +02:00
parent 9b8171db5b
commit 17ee42c8ea
7 changed files with 37 additions and 7 deletions
@@ -213,3 +213,12 @@ def patchnotes_get(): # noqa: E501
mimetype='application/json',
status=200,
)
def cors_options_handler():
from flask import make_response
response = make_response('')
response.headers['Access-Control-Allow-Origin'] = '*'
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, OPTIONS'
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'
return response