'CORS error while accessing azure databricks rest api from front end
CORS error while accessing azure databricks rest api from front end
/api/2.0/jobs/run/list while accessing this from postman I am getting the response as expected
But while accessing the same api from front end it’s throwing cORS ‘ local host:4200 has been blocked by Cors policy: Response to preflight: it doesn’t have http ok status
How can I solve this issue
Solution 1:[1]
You can try using your backend to mediate between the frontend and DataBricks api, or if you are in azure environment you can try making a functions api that brings trigger from the frontend and hits the databricks api.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Meeth Shetty |
