Reputation: 153
I'd like to host an external website on AMT using an iframe and allow users to answer to respond on the website. However, I get the following error:
The resource from “https://requestersandbox.mturk.com/create/projects/worker-html.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Could this be caused by the use of a rest API (application/json)? If so, is there a way of fixing it or some work around?
Upvotes: 0
Views: 331
Reputation: 11976
Are you using Express to host the external website? This answer seems to have the same error message and recommends a fix: https://stackoverflow.com/a/45119502/2601671
Also, the URL https://requestersandbox.mturk.com/create/projects/worker-html.js
doesn't exist on the MTurk site. Is this a file you expect to have on your server?
Upvotes: 0