R
R
Roman Rakzin2017-03-01 23:32:41
ASP.NET
Roman Rakzin, 2017-03-01 23:32:41

System.InvalidOperationException: "Incorrect Content-Type". With all possible combinations. Why?

Everything works on one computer. Transferred to another and the studio writes in the place where I accept POST parameters - System.InvalidOperationException: "Incorrect Content-Type
I changed all kinds of Content-Type in jquery, it still writes Incorrect Content-Type and the specified type. understood, what works on one computer, and swears on another.What
could be the matter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Rakzin, 2017-03-05
@TwoRS

In jquery ajax request added

$.ajax({
    url: '/api/param1',
    headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
    }....

and began to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question