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

Fix jsonp content-type response header #380

Merged
merged 1 commit into from Aug 4, 2014

Conversation

Projects
None yet
5 participants
@simonlampen
Contributor

simonlampen commented Jul 29, 2014

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.

Fix jsonp content-type response header
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

This comment has been minimized.

Show comment
Hide comment
@miguelpeixe

miguelpeixe commented Jul 29, 2014

+1

@kellygrape

This comment has been minimized.

Show comment
Hide comment
@kellygrape

kellygrape commented Jul 29, 2014

+1

@PavloKovalov

This comment has been minimized.

Show comment
Hide comment
@PavloKovalov

PavloKovalov commented Aug 4, 2014

👍

@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

Merge pull request #380 from simonlampen/master
Fix jsonp content-type response header

@rmccue rmccue merged commit 0e46bba into WP-API:master Aug 4, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
@rmccue

This comment has been minimized.

Show comment
Hide comment
@rmccue

rmccue Aug 4, 2014

Member

Thanks for the patch!

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

Add generic CPT class
Better fix for #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 join this conversation on GitHub. Already have an account? Sign in to comment