How do I preventing this error ERR_BLOCKED_BY_XSS_AUDITOR in WordPress?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

IT Corporate Trainer with 9 years of experience in Edu tech

Chrome v58 might or might not fix your issue... It really depends to what you're actually POSTing. For example, if you're trying to POST some raw HTML/XML data whithin an input/select/textarea element, your request might still be blocked from the auditor. In the past few days I hit this issue in two...
read more
Chrome v58 might or might not fix your issue... It really depends to what you're actually POSTing. For example, if you're trying to POST some raw HTML/XML data whithin an input/select/textarea element, your request might still be blocked from the auditor. In the past few days I hit this issue in two different scenarios: a WYSIWYG client-side editor and an interactive upload form featuring some kind of content preview. I managed to fix them both by base64-encoding the raw HTML before POSTing it, then decoding it on the receiving PHP page. This will most likely fix the issue and, most importantly, increase the developer's awareness level regarding the data coming from POST requests, hopefully pushing him into adopting effective data encoding/decoding strategies and strengthen their web application from XSS-type attacks. To base64-encode your content on the client side you can either use the native btoa() function, which is supported by most browsers nowadays, or a third-party alternative such as a jQuery plugin (I ended up using this, which worked ok). To base64-decode the POST data you can then use PHP's base64_encode(str) function, ASP.NET's Convert.FromBase64String(str) or anything else (depending on your server-side scenario). read less
Comments

Related Questions

Hi how to insert the data in database by using WordPress?
<?php require_once('/wp-config.php'); global $wpdb; if(isset($_POST)){ $wpdb->insert( 'wp_post_job', array( 'organizationname' => $_POST, 'post' => $_POST,...
Profile Photo
Subbu
0 0
View Comments9
Will an email marketer need to learn how to use wordpress?
No, if you want to market through the website it should be.
Profile Photo
Tina
Is WordPress secured?
Well, without any doubt Wordpress is secured, But as Mr. Sanjay mentioned, hackers are everywhere, if you are from India, since Internet Security Policy is not strict as Foreign countries. I recommend...
Profile Photo
Geethu
I am working as a WordPress developer from 2 years. But from beginning to till now I am working on the same things, what should I learn now to grow my career?
As you are working on Wordpress since years you might have worked for many websites in these years, so it'll be great for you to learn Advanced Digital Marketing which can help your career to grow next level.
Profile Photo
Yogesh

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

WordPress Website Design Training Program Syllabus
What You will Learn in WordPress Website Design Training Program Introduction to CMS and WordPress Installation of WordPress Setting up WordPress on Local and Remote Server WordPress User...
Profile Photo


Great Blog Marketing Techniques
Blog Marketing hacks that actually works Marketing your blog is not all that hard to do. You have to be persistent and want success however if you want your blog to do well. You cannot just make a post...
Profile Photo


Wordpress Plugin-How to show job count in job search.
WP Job Manager is one of the famous job board in WordPress world. It provides option for Adding job from front-end. It gives a dashboard where user can check their posted job. Also a job directory where...
Profile Photo

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for WordPress Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you