Access-Control-Allow-Origin has been working fine for me.
I have the following on my PHP code:
It was serving fine with the server config.
But after I installed nginx as reverse proxy, it is no longer working.
Firefox web console shows error:
How do I make it to work again?
I have the following on my PHP code:
<?php header("Access-Control-Allow-Origin: https://frontend.com"); ?>
It was serving fine with the server config.
But after I installed nginx as reverse proxy, it is no longer working.
Firefox web console shows error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://backend.com. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 401.
How do I make it to work again?