Answer the question
In order to leave comments, you need to log in
How to fix Chrome Extension 429 Too Many Requests on ajax request?
There was a problem sending data from the Chrome Extension to your server.
For some reason, too many requests are leaving, causing the server to return 429 Too Many Requests.
Although I only send it once.
With each update, the number of requests grows.
How to fix it?
Answer the question
In order to leave comments, you need to log in
Found the reason. Maybe someone will be useful. I put a method with ajax inside chrome.tabs.onUpdated.addListener in backgrounde.
It was not the right decision. The listener kept firing and re-calling my method.
I hope someone will help.
So throw off the code of the AJAX request itself, maybe there is an error there?
There is more about this
here httpd.apache.org/docs/2.0/misc/rewriteguide.html
you need to enable mod_rewrite
and add to .htaccess:
## Enable
RewriteEngine On
RewriteBase /
## Exceptions under which the rule below will be skipped
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_URI} !\.(js|css|gif|png |jpg|jpeg|ico)$
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## The rule that redirects the request to the get parameter ?url=* (note the RewriteBase )
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question