mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Remove Access-Control-Allow-Origin
I don't think it's any useful without Access-Control-Allow-Methods anyway.
This commit is contained in:
parent
d5107e3cdb
commit
99218216f0
1 changed files with 0 additions and 8 deletions
|
@ -681,13 +681,6 @@ class Interface(BaseInterface):
|
|||
# TODO: Return OK to 'OPTIONS' xhr requests (l173)
|
||||
app = Bottle(autojson=True)
|
||||
|
||||
# Wrapper which sets proper header
|
||||
def apiheader(callback):
|
||||
def wrapper(*args, **kwargs):
|
||||
response.set_header('Access-Control-Allow-Origin', '*')
|
||||
return callback(*args, **kwargs)
|
||||
return wrapper
|
||||
|
||||
# Attempt to retrieve and set locale
|
||||
def api18n(callback):
|
||||
try:
|
||||
|
@ -698,7 +691,6 @@ class Interface(BaseInterface):
|
|||
return callback
|
||||
|
||||
# Install plugins
|
||||
app.install(apiheader)
|
||||
app.install(api18n)
|
||||
app.install(_ActionsMapPlugin(actionsmap, use_websocket, log_queues))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue