Month: January 2020

CORS policy: It does not have HTTP ok status

From https://example.com, I would like to get data from https://api.example.com/login. But what I get is this error: Access to XMLHttpRequest at ‘https://api.example.com/login‘ from origin ‘https://example.com‘ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check:…

Symfony 5 @required annotation weird caching issue during setter injection?

I discovered this strange issue in Symfony 5 which I believe is connected to docker and Symfony itself. MY SETUP docker-compose.yml version: ‘3.7’ services: webapp: build: context: ./php/ dockerfile: Dockerfile container_name: webapp image: php:7.4.1-fpm-alpine volumes: – ../:/srv/app apache2: build: network:…