Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the JSONP Prefix is set, the header should change from application/json to application/javascript
Comment | File | Size | Author |
---|---|---|---|
#4 | views_datasource-application_javascript_header-2010540-4.patch | 655 bytes | yannickoo |
#3 | views_datasource-javascript-header-2010540-2.patch | 1012 bytes | makangus |
#1 | views_datasource-javascript-header-2010540.patch | 1.04 KB | makangus |
Comments
Comment #1
makangus CreditAttribution: makangus commentedSolution 1: Provide extra CONTENT-TYPE options for application/javascript and text/javascript
Comment #2
yannickooapplication/javascript
should be enough for JSONP, why did you addtext/javascript
?Comment #3
makangus CreditAttribution: makangus commentedYou are right, text/javascript is obsolete now. New patch.
Comment #4
yannickooSorry but these big patches are very confusing. Just recreated it with
git diff -w
but yeah, RTBC :)Comment #5
yannickooFixed with 0e0285e.
Comment #6
yannickooComment #7
yannickooFixed with 0c1cfb1.