-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOLVED] Not works with Google Cloud Storage images URLS #124
Comments
Just ran into similar issue with a cloud bucket – could either be a CORS issue, or maybe you just need to specify it's an image, adding |
@ffd8 yeah i've confirmed, it's a CORS issue. But when i render inline I'm trying to configure cloud bucket to works with wildcard origin CORS, but it's not working. |
@ffd8 i've found the solution. Create a json file, ex: [
{
"origin": ["*"],
"method": ["GET", "OPTIONS"],
"responseHeader": [
"Origin",
"Accept",
"X-Requested-With",
"Authorization",
"Content-Type",
"Content-Length",
"Accept-Encoding",
"X-CSRF-Token"
],
"maxAgeSeconds": 1
}
] Apply this file to configure CORS on your bucket running the command: gsutil cors set [PATH_TO_JSON_FILE] gs://[BUCKET_NAME] |
I'm trying to render a gallery imagem from Google Cloud Storage, and when lightbox open, return "Invalid source".
Example of image URL
https://storage.googleapis.com/sellers-pictures/f1305769-2965-43ba-ba30-cd7a8ce2a647.jpg
The text was updated successfully, but these errors were encountered: