allow authorization header in cors
This commit is contained in:
parent
40644bcb4b
commit
a9c022b992
@ -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',
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user