allow authorization header in cors

This commit is contained in:
bakatrouble 2025-08-01 09:51:25 +03:00
parent 40644bcb4b
commit a9c022b992

View File

@ -20,6 +20,7 @@ api_auth = json.loads(os.environ['API_AUTH'])
app = Sanic('e621_bot_api') app = Sanic('e621_bot_api')
app.config.CORS_ORIGINS = '*' app.config.CORS_ORIGINS = '*'
app.config.CORS_HEADERS = 'Authorization, *'
app.config.update({ app.config.update({
'REDIS': 'redis://localhost', 'REDIS': 'redis://localhost',
}) })