feat: respect x-* headers for redirections (#9054)
parent
240b66d737
commit
c0b71f8286
@ -0,0 +1,10 @@
|
||||
from flask import Flask
|
||||
|
||||
from configs import dify_config
|
||||
|
||||
|
||||
def init_app(app: Flask):
|
||||
if dify_config.RESPECT_XFORWARD_HEADERS_ENABLED:
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
Loading…
Reference in New Issue