Hello! Please tell me what's wrong with my code? I'm trying to use the "Send" button to send data to a remote server where a Flask application is located. Flask app has CORS, but I still get an error.
{"code":403,"message":"Invalid CORS request"}
I use resolver.define. Resolver.define doesn't even fire.
manifest.yml
index.js
try {
const response = await fetch('https://domen', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ date, time }),
});