While attempting to send a post request to Firebase through my Vue app, I keep encountering an error illustrated in this image.
I have a webpack server running and the website is on localhost:8080. However, I also have a live version hosted on hostinger at . Whenever I try to click "add new blog", fill out the details, and hit post, it results in a CORS error.
To combat this, I've made adjustments to a .htaccess file by including the following code snippet:
IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" /IfModule>
If anyone could provide assistance with this issue, I would greatly appreciate it!