apache - Angular 8 with php and mysql database Cross-Origin Request Blocked:
one text
Solution:
From enable cors in .htaccess (this question is a duplicate!) You need to use add instead of set. Remove all the rules and replace by:
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
The asterisk should be replaced by the correct domain in production mode.
Source