Ajax bugfix: unsafe header with SSL

已取消 已发布的 7 年前 货到付款
已取消 货到付款

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

项目ID: #13517123

关于项目

14个方案 远程项目 活跃的7 年前

有14名威客正在参与此工作的竞标,均价$26/小时

dkokmadis

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

$25USD 在1天里
(195条评论)
6.9
grupociberia

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

$50USD 在1天里
(29条评论)
6.3
Namelessinterest

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

$30USD 在1天里
(88条评论)
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 更多

$35USD 在1天里
(6条评论)
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

$30USD 在1天里
(37条评论)
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

$10USD 在1天里
(4条评论)
3.4
kbganesan87

I will do it with in a hour.

$20 USD 在0天内
(1条评论)
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 在0天内
(0条评论)
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 更多

$25 USD 在5天内
(0条评论)
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 更多

$10USD 在1天里
(0条评论)
0.0