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
{{ message }}
Repository navigation
Image upload error in Safari: Failed to load resource: Request header field Authorization is not allowed by Access-Control-Allow-Headers. #431
Hi,
I'm getting an error Failed to load resource: Request header field Authorization is not allowed by Access-Control-Allow-Headers. in Safari, but not in Chrome using the following code for javascript upload. Is there anyway to fix this?
Hi @netwire88, This seems like a CORS error. Since direct uploading from the browser is performed using XHR (Ajax XMLHttpRequest) CORS requests. In order to support older browsers that do not support CORS, you can place cloudinary_cors.html in the public folder of your Rails application. This file is available in the vendor/assets/html folder of the Ruby gem. Let us know if this solves your issue.
Thanks
Activity
michalkcloudinay commentedon Jan 24, 2021
Hi @netwire88, This seems like a CORS error. Since direct uploading from the browser is performed using XHR (Ajax XMLHttpRequest) CORS requests. In order to support older browsers that do not support CORS, you can place cloudinary_cors.html in the public folder of your Rails application. This file is available in the
vendor/assets/htmlfolder of the Ruby gem. Let us know if this solves your issue.Thanks