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

Wrong content-Type for tinymce json views #125

Open
ale-rt opened this issue Nov 23, 2015 · 0 comments
Open

Wrong content-Type for tinymce json views #125

ale-rt opened this issue Nov 23, 2015 · 0 comments
Assignees
Milestone

Comments

@ale-rt
Copy link
Member

ale-rt commented Nov 23, 2015

The content type for json views should be application/json.
Now it is text/html:

[ale@kenobi plone]$ curl -I plone.org/tinymce-jsonconfiguration |grep Type
Content-Type: text/html

This triggers the csrf transform in a way that the json becomes:

<html><body><p>{"theme_adv...
ath": false}</p><script src="​.../++resource++protect.js" ...></script></body></html>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant