<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Facing CORS issue while calling Databricks REST API from a react application in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/facing-cors-issue-while-calling-databricks-rest-api-from-a-react/m-p/52268#M1791</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;I am trying to call the REST API of Databricks from a React(v17) application,&amp;nbsp; using the following documentation&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/api/workspace/introduction" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/api/workspace/introduction&lt;/A&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am getting CORS issue on the APIs and not able to call them. But, when I try to call them through an intermediate node server, that I have setup, its working fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To be more specific, I tried to execute a query on one of the tables using the statement execution APIs,&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/statementexecution" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/api/workspace/statementexecution&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to call the APIs directly from the React(v17) application ? Or is there a way to bypass the CORS issue ?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Nov 2023 11:41:35 GMT</pubDate>
    <dc:creator>Yaminim</dc:creator>
    <dc:date>2023-11-16T11:41:35Z</dc:date>
    <item>
      <title>Facing CORS issue while calling Databricks REST API from a react application</title>
      <link>https://community.databricks.com/t5/get-started-discussions/facing-cors-issue-while-calling-databricks-rest-api-from-a-react/m-p/52268#M1791</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I am trying to call the REST API of Databricks from a React(v17) application,&amp;nbsp; using the following documentation&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/api/workspace/introduction" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/api/workspace/introduction&lt;/A&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am getting CORS issue on the APIs and not able to call them. But, when I try to call them through an intermediate node server, that I have setup, its working fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To be more specific, I tried to execute a query on one of the tables using the statement execution APIs,&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/statementexecution" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/api/workspace/statementexecution&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there a way to call the APIs directly from the React(v17) application ? Or is there a way to bypass the CORS issue ?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Nov 2023 11:41:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/facing-cors-issue-while-calling-databricks-rest-api-from-a-react/m-p/52268#M1791</guid>
      <dc:creator>Yaminim</dc:creator>
      <dc:date>2023-11-16T11:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Facing CORS issue while calling Databricks REST API from a react application</title>
      <link>https://community.databricks.com/t5/get-started-discussions/facing-cors-issue-while-calling-databricks-rest-api-from-a-react/m-p/72475#M3105</link>
      <description>&lt;P&gt;There was a similar issue resolved regarding cors seen here: &lt;A href="https://community.databricks.com/t5/administration-architecture/databricks-rest-apis-cors-issue/td-p/63936" target="_blank"&gt;https://community.databricks.com/t5/administration-architecture/databricks-rest-apis-cors-issue/td-p/63936&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is just for your own development and testing you might consider allowing all in your react app but be careful of monitoring outside malicious requests with such a setting&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 20:55:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/facing-cors-issue-while-calling-databricks-rest-api-from-a-react/m-p/72475#M3105</guid>
      <dc:creator>Tophu</dc:creator>
      <dc:date>2024-06-11T20:55:05Z</dc:date>
    </item>
  </channel>
</rss>

