WYSIWYG Image Access_Token #9831
ccu-jesseg
announced in
Archive
Replies: 1 comment 2 replies
-
Hi, I am also having this issue. I agree that the access_token appears to be expiring based on the api message received back. THINGS I'VE TRIED:
This is a significant problem as the src of the img's is seemingly generated by the WYSIWYG itself and there is no way to strip the url of the access_token ahead of time as the client loads the html dynamically. Not to mention that would be difficult/unreliable to parse at scale with large amounts of data. Any help on this front is greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add public files such as images to a collection using the WYSIWYG and Directus adds an access_token parameter to the image reference URL behind the scenes. I assume this is the access token of the currently logged in user. Since launching a feature on one of our sites that leverages the WYSIWYG, our images fail to load randomly. I'm wondering if the access_token is expiring.
Is there a way to disable the access_token from being appended to file links or another way to solve this problem? Our public role is set to have read access to files so the access_token should not be necessary for access to the files outside of the admin site.
Thanks for any insight!
Beta Was this translation helpful? Give feedback.
All reactions