Can't use Basic Auth

Hello, I’m trying to use basic auth with the header http://user:pass@server:port/dashboard_id,I also tried the model from grafana http://user:pass@localhost:port/api/org ,but it always redirect me at login page … [auth.basic] enabled = true do I need to make some other modifiers in system or grafana custom.ini?