CORS Settings not working with turned ON https rewrite and ssl-cert

hockolicious

Verified User
Joined
Jun 20, 2019
Messages
69
Location
Poland
Hello,

CORS settings in Apache configuration with DirectAdmin not working yet. I have settings in .htaccess

Code:
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"

and CORS still showing me warning when I try do request. When I turn off http rewrite to https and turn off ssl-cert cors working good.

How I can resolve this issue?
 
Back
Top