-
Notifications
You must be signed in to change notification settings - Fork 89
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
ckfinder in iframe - attach token #25
Comments
Hi @svkmedia! Could you please clarify what do you mean by opening in an If you use CKFinder inside a custom |
@zaak yes I create iframe manually. I was thinking about using widget but I have no idea how to use it because I'm trying to implement it into Vue/Laravel app. |
@svkmedia |
I'm trying to open CKFinder in iframe. Problem is that I have middleware checking routes for browser and connector.
When I hit example.com/ckfinder/browser?token=123 everything works fine.
But when I pass exactly the same URL into iframe I get response: Please attach your Bearer token. I updated setup.php in vendor package like this:
CKFinder.config( { connectorPath: <?php echo json_encode(route('ckfinder_connector')) ?>, pass: 'token', token: '<?php echo (isset($_GET['token'])) ? $_GET['token'] : "" ?>', } );
but still not working...
Any advice how to make it work in iframe?
The text was updated successfully, but these errors were encountered: