Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Problem in sending CSRF token #128

Open
samirreza opened this issue Aug 4, 2018 · 1 comment
Open

Problem in sending CSRF token #128

samirreza opened this issue Aug 4, 2018 · 1 comment

Comments

@samirreza
Copy link

samirreza commented Aug 4, 2018

we use this wrapper on ckeditor and have problem in uploading files with bad request http response from server. i search in you files and find that there is a problem in your javascript file for appending csrf token. i think in file dosamigos-ckeditor.widget.js on line 22 you should use "cke_upload_" for finding anchor tag (you use capital u for upload, cke_Upload_) and because of this when we upload file via editor csrf token did not sent

@tonydspaniard
Copy link
Member

Hi @samirreza I have been looking into the code and it does have the following to get into the tag:

<div id="cke_dialog_tabs_109" class="cke_dialog_tabs" role="tablist"><a class="cke_dialog_tab cke_dialog_tab_selected" cke_first="" title="Información de Imagen" id="cke_info_150" href="javascript:void(0)" tabindex="-1" hidefocus="true" role="tab" style="user-select: none;">Información de Imagen</a><a class="cke_dialog_tab" cke_last="" title="Vínculo" id="cke_Link_160" href="javascript:void(0)" tabindex="-1" hidefocus="true" role="tab" style="user-select: none;">Vínculo</a>
<!-- HERE IS THE UPLOAD TAB TAG -->
<a class="cke_dialog_tab" cke_last="" title="Cargar" id="cke_Upload_167" href="javascript:void(0)" tabindex="-1" hidefocus="true" role="tab" style="user-select: none;">Cargar</a>
<!-- END UPLOAD TAB TAG -->
<a class="cke_dialog_tab" cke_last="" title="Avanzado" id="cke_advanced_192" href="javascript:void(0)" tabindex="-1" hidefocus="true" role="tab" style="user-select: none;">Avanzado</a></div>

Demo here: https://kcfinder.sunhater.com/demos/ckeditor

I am not sure that is the cause. Could it be something else?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants