The server action expects a name
parameter, that’s why it shows the error in the browser. Calling it with ?name=file.ext
added to the url should work.
Does the origin exactly match? (you could test by temporary allowing all domains with *
)
What does the page show in the network tab of devtools?