Comments (12)
i think the only option is to either allow a the generic google bucket domain on all nodes, or allow any domain for image embeds on all nodes (eg disabled csp for images)
from core.
So if you watch this quick video, you will notice that if you set up with no credentials and just use images.bitclout.com that the images will post fine on your node and all others
https://www.loom.com/share/46b85cfddb934d2ba72e1b06279789c5
BTW - I just hid that post, I just wanted you to see it for yourself in the video.
from core.
@MirekR I would recommend using the bitclout.com upload-image endpoint.
from core.
@maebeam I guess we can use it but what is the point allowing to change the bucket then?
@marnimelrose thanks for the video but not sure it that’s 100% correct. The node front end seems to be using the bitclout.com uplod-image endpoint (as maebeam suggested to use as well) regardless of the settings. Issue arise when you try to call the upload-image endpoint (from mobile app for example). If you set it up as you suggest, it fails the upload.
from core.
@maebeam ive seen reports that using the default bitclout one does not work from non bitclout.com nodes - but have not tested this myself.
will test today
from core.
@tijno Let me know if you get CORS. I am happy to turn off CORS for that endpoint.
from core.
Looks like it maybe @maebeam - although this could relate to my CSP on frontend but I do have bitclout.com:*
in my connect-src
so it should be able to make requests to https://bitclout.com/api/v0/upload-image
from core.
That looks like a CSP error to me
from core.
@tijno you might want to change image-src, not connect-src to make it work?
from core.
its the api upload req to bitclout.com that fails - cant get csp update in Caddyfile to stick somehow so still waiting to rule out csp issue on my end
from core.
The issue on my end was that bitclout.com was no longer in my Caddyfile CSP section and cloudflare caching was delaying any changes from showing up.
@MirekR All working correctly now and I was able to post images from my node using the default empty GCP_BUCKET
in the dev.env file so it uses images.bitclout.com
from core.
I'm going to close this since it appears everything is working as intended.
from core.
Related Issues (20)
- FAQ: Current state 2024
- HyperSync Error
- Do not reuse old node Id's HOT 2
- Unexpected hard fork stops at 137270 HOT 1
- Unable to sync blocks after Hypersync
- Weird issue with node saying it´s fully synced, but not syncing HOT 4
- Rosetta API Response to Calculate Balance of an Account Address at a given BlockHeight is incorrect
- Node stopped syncing at 166069
- confusion about the daodao order book mechanism
- Panic when `node.nodeMessageChan <- lib.NodeErase` message is sent for the first time
- JWT can't be validated when the user has signed up with metamask HOT 7
- Postgres stops sycning at block 205527 HOT 5
- {'error': 'SubmitTransaction: Problem processing transaction: VerifyAndBroadcastTransaction: Problem validating txn: ValidateTransaction: Problem validating transaction: : ConnectTransaction: : _connectSubmitPost: : _connectBasicTransfer: Problem verifying txn signature: : _verifySignature: high-S deteceted: RuleErrorTxnSigHasHighS'} HOT 6
- Issue with postgres after fork. HOT 1
- Issue at Postgres sync block height 230799 HOT 4
- Issue: POTENTIAL DEADLOCK with Postgres Node HOT 3
- Issue Postgres at height 239769 HOT 11
- associations endpoinst query for post associations HOT 4
- Postgres node hangs on block 293635 HOT 2
- Broken link in README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.