Hi everyone.
I'm using Twill with Laravel. Configured it to use S3 Object storage, and PHP seems to upload files, but not a frontend side of Twill (Media Library). Its causing CORS issue:
> Access to XMLHttpRequest at 'https://neloroot.s3.waw.io.cloud.ovh.net/' from origin 'http://backoffice.nelo.local' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I'm testing it with local domain set up with docker, but prod is on kubernetes cluster, and the same error occurs. Attaching screenshots from Chrome Dev Console
!Screenshot%20from%202024-08-26%2010-09-35|690x336!Screenshot%20from%202024-08-26%2010-10-14|690x357
I've followed S3 Cors setup from OVH Docs, and seems like they correctly set up:
`
> aws s3api --endpoint-url https://s3.waw.io.cloud.ovh.net/ put-bucket-cors --bucket neloroot --cors-configuration file://cors.json --output json
`
> CORS file:
> {
> "CORSRules": [
> {
> "AllowedHeaders": [
> "*"
> ],
> "AllowedMethods": [
> "HEAD",
> "GET",
> "POST",
> "DELETE"
> ],
> "AllowedOrigins": [
> "backoffice.nelo.local"
> ],
> "ExposeHeaders": [
> "Access-Control-Allow-Origin"
> ],
> "MaxAgeSeconds": 3000
> }
> ]
> }
Has anyone experienced this issue, or is there any other configuration I should perform?
S3 Cors for Standard Object Storage
Related questions
- Problems to delete several files on hubiC
1828
31.05.2018 06:59
- Storage servers: what are your expectations?
1728
27.12.2017 08:09
- Multiple errors on Hubic
1725
17.04.2018 11:12
- Give me back my files you have stolen!
1680
05.09.2018 11:28
- Still problems on Hubic downloads (I want my files and my money back)
1600
18.08.2019 16:51
- Would you please make hubic more useful?
1589
19.10.2017 08:25
- [HUBIC] Unknown error occurred during the identification process. Server response : 509
1517
04.09.2018 15:16
- Formal Notice to Close my Hubic Account
1488
02.10.2018 18:21
- [hubic] abonnement automatiquement renouvelé
1450
29.12.2018 03:28
- Problems getting passswords for my hubic account
1259
06.08.2018 13:06
Same here. I managed to fix CORS issue but now I get 501 / Not Implemented status.