ajaxboy / cjax

Lightweight Ajax Framework built in PHP with no foot-print. Allows you to build ajax functionality with a single line of code & do so much more, right from the back-end!
http://cjax.sourceforge.net/
66 stars 27 forks source link

Refused to set unsafe header "Content-length" Refused to set unsafe header "Connection" #54

Closed frecervantes closed 2 years ago

frecervantes commented 2 years ago

why I'm getting this. in localhost while testing cjax.

some google expalnation: XMLHttpRequest isn't allowed to set these headers, they are being set automatically by the browser.

am I doing something wrong?

ajaxboy commented 2 years ago

@frecervantes What version of PHP are you using? Are you using any framework, or anything else? Are you using Jquery or any other Js Framework?

frecervantes commented 2 years ago

thanks ajaxboy, allready fixed.

frecervantes commented 2 years ago

Hello Ajaxboy, I'm testing locally the Cjax's functionality and everything is ok. It's an awesome framework, though, for people like me, who don't master the javascript language, would be very useful if you go further and create some sets of utilities, plugins, ect. to do simple, necessary and useful things like:

using your simple calls to do it. This will boost the cjax framework, especially with the beginners. there may be a plugin for every single feature you want to add to the framework.

Just an idea.

Regards.

El jue, 17 feb 2022 a las 23:43, Cj @.***>) escribió:

@frecervantes https://github.com/frecervantes What version of PHP are you using? Are you using any framework, or anything else? Are you using Jquery or any other Js Framework?

— Reply to this email directly, view it on GitHub https://github.com/ajaxboy/cjax/issues/54#issuecomment-1043876312, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATXSNM6FEEPB66WPCE52A7LU3XFADANCNFSM5OQJERGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>