arm-moodys commented on issue #31025:
URL: https://github.com/apache/superset/issues/31025#issuecomment-2537386271
> To address the "404 NOT FOUND" error for "/favicon.ico" in Superset, you
might consider creating a custom Flask route to serve the favicon directly.
This can help ensure that the favicon is accessible at the root URL. Here's a
basic example of how you can add a route in your Flask application:
>
> ```python
> from flask import send_from_directory
>
> @app.route('/favicon.ico')
> def favicon():
> return send_from_directory(os.path.join(app.root_path,
'static/assets/images'),
> 'favicon.png', mimetype='image/png')
> ```
>
> This route explicitly serves the favicon from the specified directory.
Ensure that the path to the favicon is correct and that the file exists at that
location.
>
> Additionally, verify your Nginx Ingress configuration to ensure it doesn't
interfere with requests to "/favicon.ico". You might need to add specific rules
to handle these requests correctly. If the issue persists, consider checking
for any caching or proxy settings that might affect the routing of static files.
>
> _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
>
> Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=hallucination)
|
[Other](https://app.dosu.dev/response-feedback/8135075d-40d6-4fd4-86c7-82e252e91698?feedback_type=other)
@dosu I already tried that and didn't work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]