Ajax bugfix: unsafe header with SSL

Cancelled Posted 7 years ago Paid on delivery
Cancelled Paid on delivery

After changing to SSL an Ajax form stopped working. Ajax request is sent to the same server and domain beginning with https so there should be no cross domain issues.

Error in Firefox console:

Attempt to set a forbidden header was denied: Connection

Error in Chrome:

Refused to set unsafe header "Connection"

Code:

[login to view URL]([login to view URL], [login to view URL], true);

if([login to view URL] == "POST" && this._postdata != null && [login to view URL]) {

[login to view URL]('Content-type', 'application/x-www-form-urlencoded');

[login to view URL]('Connection', 'close');

}

I tried adding [login to view URL] = true; but didn't help.

The server is dedicated using Ubuntu and might need configuration for CORS.

AJAX JavaScript Ubuntu UNIX

Project ID: #13517123

About the project

14 proposals Remote project Active 7 years ago

14 freelancers are bidding on average $26 for this job

dkokmadis

Hello from Greece, do you have SSh access to the server? Would you like to have a chat? Regards, Dimitris

$25 USD in 1 day
(195 Reviews)
6.9
grupociberia

I can fix it right now, I have experience in Ajax - SSL, i am very interested in this project. Thanks

$50 USD in 1 day
(29 Reviews)
6.3
Namelessinterest

Hello! I have expreince in certificate installation and Ill be very happy to fix your bug with header. Thanks!

$30 USD in 1 day
(88 Reviews)
5.7
WaheedGondal1

Hello, Hope you are fine. I have read the job description, I am willing to work with you as per your requirements. I have already done similar work and get great feedback. Please open chat with me so we can dis More

$35 USD in 1 day
(6 Reviews)
4.9
MoustafaS

Hello, I can do this, but it will be mainly with alternative to that header, since it will have to be removed. Available to start now. Regards

$30 USD in 1 day
(37 Reviews)
4.7
itsheik

I am expertise in php. I have fixed like this for cross orgin. I need to take this project for increasing my portfolio in freelancer. you can award me once I successfully completed your requirements

$10 USD in 1 day
(4 Reviews)
3.4
kbganesan87

I will do it with in a hour.

$20 USD in 0 days
(1 Review)
0.0
jtarun4625

Its very simple i have seen the error in your code , dont get cheated by others . I can give you this done in same day ,if you award me this project. Thank You

$10 USD in 0 days
(0 Reviews)
0.0
WebnessWebagency

Why you should choose me? 1. I'm work with ajax for 6 years. 2. I'm work with linux for 4 years. 3. I need good ratings because i'm new here. It's a 1st class work guarantee. 4. You want quick solution. 5. You will get More

$25 USD in 5 days
(0 Reviews)
0.0
arindamqwerty

Hey, The error shown on chrome is pretty much self explanatory. You are passing an unnecessary header which leads to a security vulnerability. Removing the connection header should do the job for you. If the header i More

$10 USD in 1 day
(0 Reviews)
0.0