Removing the slashes does not help

Removing the slashes does not help
7 Replies
Mun
MunOP2y ago
@sdnts This is what my CORS policy looks like now and I still dont have any luck: [ { "AllowedOrigins": [ "" ], "AllowedMethods": [ "DELETE", "HEAD", "GET", "PUT", "POST" ], "AllowedHeaders": [ "" ] } ]
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mun
MunOP2y ago
Sorry dont know why it wasnt showing the "" but some sort of error on copy/paste. But I did try removing teh trailing "/" and that did not do anything. So I decided to go the nuclear approach and just putting wildcards everywhere. That isn't working either [ { "AllowedOrigins": [ "" ], "AllowedMethods": [ "DELETE", "HEAD", "GET", "PUT", "POST" ], "AllowedHeaders": [ "*" ] } ]
Mun
MunOP2y ago
Interesting. When I paste it, it seems to remove the wildcard. Here is a picture of what it looks like
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mun
MunOP2y ago
I am doing the following and getting a CORS error: fetch(presignedURL, { method: "post", body: formData }).catch(console.error) trying to upload a file Interesting.. changing the "post" to "put" worked.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?