UDF call external database

I am try to get some data from a sql server database in user-defined function for Neo4, but got this message:
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3

Try something like this:
SplitWords is my UDF results in a table

WITH "select * from SplitWords('I came')"as sql
call apoc.load.jdbc('jdbc:sqlserver://localhost:1433;databaseName=Datascience;user=xx;password=yyy',sql)
yield row