You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to use the Fetch API to POST some data to a LAMP server. I took your Fetch API example from the documentation and changed the requestMethod and filled the data array. I think something is wrong with attr.requestHeaders somewhere because, on the server side I get nothing in the $_POST array. Here is the modified code:
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
Activity
cmdcolin commentedon Jan 8, 2018
Just wanted to add a +1 to this was hoping to use requestHeaders also!
properly set request headers for fetch
properly set request headers for fetch
Fetch API headers implementation (#6514)
kripken commentedon Jul 10, 2018
This may have been fixed by #6514 - please check.
stale commentedon Sep 18, 2019
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.