Http Error 404 Not_found Requesturi=/favicon.ico
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up favicon.ico not found error? up vote 11 down vote favorite 5 I have an application that uses Spring Security 3 runs on Tomcat. I didn't define any favicon for my website however when I run my application from my IDE sometimes after I login from my login pages it redirects my page to: http://localhost:8080/favicon.ico and says: 404 Not Found There is a topic here: http://forum.springsource.org/showthread.php?100901-redirect-to-favicon.ico however I didn't define a favicon.ico does Spring Security 3 wants it by default(if yes, why it happens sometimes?) web spring-security http-status-code-404 favicon share|improve this question edited Jun 4 '15 at 14:48 K.C. 1,74521530 asked Sep 14 '11 at 8:22 kamaci 21k45149269 add a comment| 2 Answers 2 active oldest votes up vote 18 down vote accepted Here is the explanation: The issue is, when the browser cache is empty and a user comes in, here is what happens: the user requests URL "/". This URL is cached. the browser makes a requests to "/favicon.ico". This URL becomes the new URL where to redirect to upon authentication. the user posts the login form and is redirected to "/favicon.ico". To fix this, you need to set "/favicon.ico" as being a non-secured resources:
Sign in Pricing Blog Support Search GitHub This repository Watch 1,040 Star 18,797 Fork 10,723 tastejs/todomvc Code Issues 106 Pull requests 23 Projects 0 Wiki Pulse Graphs New issue Lack of favicon.ico in root directory raises 404 error, cluttering test output #1465 Closed davidrunger opened this Issue Oct 11, 2015 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants davidrunger commented Oct 11, 2015 When I run the tests per the instructions in tests/README.md, I get a 404 error for favicon.ico in many/most/all(?) of the tests. Example: TodoMVC - backbone When page is initially opened ✓ should focus on the http://stackoverflow.com/questions/7413304/favicon-ico-not-found-error todo input field [ { level: { name: 'SEVERE', value: 1000 }, message: 'http://localhost:8000/favicon.ico 0:0 Failed to load resource: the server responded with a status of 404 (Not Found)', timestamp: 1444529718462, type: '', closure_uid_682459046: undefined } ] No Todos ✓ should hide #main and #footer (131ms) [ { level: { name: 'SEVERE', value: 1000 }, message: 'http://localhost:8000/favicon.ico 0:0 Failed to load resource: the server responded with a status of 404 (Not Found)', timestamp: 1444529720273, https://github.com/tastejs/todomvc/issues/1465 type: '', closure_uid_682459046: undefined } ] ... The tests pass, but these error messages terribly clutter up the test output. I imagine that there is some setting to suppress the printing of the errors, but that is probably not ideal because it would be nice to see other, legitimate errors in the test output. The problem can be fixed by simply creating in the root directory a symlink to the favicon.ico that is in the site-assets directory: ~/Downloads/todomvc $ ln -s site-assets/favicon.ico favicon.ico Now we get a much neater test output: TodoMVC - backbone When page is initially opened ✓ should focus on the todo input field No Todos ✓ should hide #main and #footer (98ms) ... I'd make a pull request adding the symlink, but I feel like I am probably missing something? Otherwise I imagine that someone else would have raised this issue by now. Apologies if that is the case. Additionally, I'm not sure if y'all want that symlink cluttering up the root directory. TasteJS member samccone commented Oct 11, 2015 Here is some more context 6b12eb3 I'm totally up for a more elegant solution if you can think of one davidrunger added a commit that referenced this issue Oct 11, 2015 davidrunger and MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster http://search.cpan.org/dist/Dancer2/lib/Dancer2/Manual.pod Data Management for CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human Resources and PayrollHuman Capital AnalyticsTalent http error ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance ManagementSelling Through Contact CentersServiceOverviewEfficient Field Service ManagementOmnichannel Customer http error 404 ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBusiness IntelligencePredictive AnalyticsGovernance, Risk, and ComplianceEnterprise Performance ManagementApplication Platform and InfrastructureOverviewApplication PlatformContent and CollaborationInterface ManagementProcess Management and IntegrationData ManagementOverviewBig Data on HadoopData WarehousingDatabase ManagementEnterprise Information ManagementIT ManagementOverviewApplication Lifecycle Managemen
POD Website View/Report Bugs Source NAME VERSION DESCRIPTION INSTALL BOOTSTRAPPING A NEW APP USAGE HTTP Methods Handling multiple HTTP request methods Route Handlers Declaring Routes Retrieving request parameters Named matching Wildcard Matching Mixed named and wildcard matching Regular Expression Matching Conditional Matching Prefix Delayed responses (Async/Streaming) Action Skipping HOOKS Templates Error Handling File Rendering Serializers HANDLERS File Handler Auto page Writing your own ERRORS Error Pages Execution Errors Error handling SESSIONS Handling sessions Storing data in the session Retrieving data from the session Controlling where sessions are stored Changing session ID Destroying a session Sessions and logging in Retrieve complete hash stored in session Writing a session engine The Session keyword TEMPLATES Views Layouts Encoding STATIC FILES Static Directory Static File from a Route Handler FILE UPLOADS CONFIGURATION Configuration and environments Accessing configuration information Settings Serializers Importing using Appname LOGGING Configuring logging Logging your own messages TESTING Using Plack::Test Basic Example Putting it together Subtests Cookies Accessing the configuration file PACKAGING Carton What it does Setting it up FatPacker MIDDLEWARES Plack middlewares Path-based middlewares Running on Perl web servers with plackup Enabling content compression Running multiple apps with Plack::Builder Running from Apache with Plack PLUGINS Writing a plugin EXPORTS DSL KEYWORDS any cookies cookie config content content_type dance dancer_version debug decode_json ($string) dirname encode_json ($structure) engine error false forward from_dumper ($structure) from_json ($string, \%options) from_yaml ($structure) get halt response_headers response_header push_response_header hook info mime params param route_parameters query_parameters body_parameters pass patch path post prefix del options put redirect re