Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Fix jsonp content-type response header #380

Merged
merged 1 commit into from
Aug 4, 2014
Merged

Conversation

simonlampen
Copy link
Contributor

Incorrectly sends application/json rather than application/javascript on a jsonp request which breaks strict mime handling. In response to error: Refused to execute script from '...url...' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

Incorrectly sends application/json rather than application/javascript on a jsonp request which breaks strict mime handling. In response to error: Refused to execute script from '...url...' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
@miguelpeixe
Copy link

+1

2 similar comments
@kellygrape
Copy link

+1

@PavloKovalov
Copy link

👍

@rmccue rmccue added the Bug label Aug 4, 2014
@rmccue rmccue added this to the 1.2 milestone Aug 4, 2014
@rmccue rmccue self-assigned this Aug 4, 2014
rmccue added a commit that referenced this pull request Aug 4, 2014
Fix jsonp content-type response header
@rmccue rmccue merged commit 0e46bba into WP-API:master Aug 4, 2014
@rmccue
Copy link
Member

rmccue commented Aug 4, 2014

Thanks for the patch! ✨

Japh pushed a commit to Japh/WP-API that referenced this pull request Sep 29, 2014
Japh pushed a commit to Japh/WP-API that referenced this pull request Sep 29, 2014
Better fix for WP-API#380 for generic post types and plugins.

git-svn-id: http://gsoc.svn.wordpress.org/2013/rmccue/trunk@2348 f69abe3c-2ee2-4550-9a6d-17bd458115be
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants