Dash app is not loading on server

I have this application runs perfectly on local but when I deployed it in server. It displays “Loading…” and never loads and gives error " //server.com/consent/_dash-component-suites/dash_renderer/polyfill@7.v1_9_0m1629129288.8.7.min.js)” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff"

This is my definition.
index_app = dash.Dash(server=flask_app, name="Dashbar", meta_tags=[{'name':'viewport', 'content': 'width=device-width, initial-scale=0.8, maximum-scale=1.2, minimum-scale=0.8, shrink-to-fit=yes'}], title="Stock Simulation", update_title=None, external_stylesheets=[dbc.themes.BOOTSTRAP], url_base_pathname="/consent/") . It works fine in my local but gives error on server. This is the routing -
@server.route('/dash/') def render_dashboard(): return redirect('/consent/')
I guess the application is not able to find assets and static folder while on server thats why the error. This is the structure of my app.

Please help. Any leads would be very helpful. Thanks