Thanks David. I see that I have the following in httpd.conf :
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named explicitly --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
Header set Access-Control-Allow-Origin "*"
The problem I have is that my browser is causing an OPTION I guess due to the fact that I am trying to send a Json buffer to the server. My server app is not responding correctly to this request so the browser is causing the error:
https://www.rdsubstantiation.com/sub_crud/Subit_backend/register' from origin 'chrome-extension://bdjgnodlhfmhghjhbkkkaaammfocdpib' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
So I need to make sure that the server is not responding back to the browser with content-type. But my app is NOT setting the response to the pre-flight. How can I control the server's pre-flight response?