I'm creating a small app that gets html from a google form.
The app has only an input and a button.
You should put the link to a google form in the input.
When you push the button the app has to get the HTML from the google form and return it.
I've tried using fetch function to fetch the url od the google form but It shows "Access to fetch at '...' from origin '...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
function App() {
const getHTML = async () => {
const resp = await fetch("...")
const data = await resp.json()
console.log(resp)
}
return (
<div className="App">
<button onClick={() => getHTML()}>My Button</button>
</div>
);
}
export default App;