36.2a Testing Backend HTTPS access with frontend (#36, #32)

This commit is contained in:
Art
2021-09-27 15:52:01 +03:00
parent d4ad1e070b
commit 438c09bb35
2 changed files with 6 additions and 2 deletions

View File

@ -455,4 +455,7 @@ systemctl restart docker
10. But now visiting direct LoadBalancer gave an error 10. But now visiting direct LoadBalancer gave an error
- `https://supportportalbackend-secured.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com` - `https://supportportalbackend-secured.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com`
- `NET::ERR_CERT_COMMON_NAME_INVALID` - `NET::ERR_CERT_COMMON_NAME_INVALID`
11. Test with Frontend
- Using **HTTP** `http://portal-back-secure.shyshkin.net` -> ERROR
- `Access to XMLHttpRequest at 'http://portal-back-secure.shyshkin.net/user?size=2147483647' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.`
- Using **HTTPS** `https://portal-back-secure.shyshkin.net` -> OK

View File

@ -4,7 +4,8 @@
export const environment = { export const environment = {
production: false, production: false,
apiUrl: 'http://portal-bean.shyshkin.net', apiUrl: 'https://portal-back-secure.shyshkin.net',
// apiUrl: 'http://portal-bean.shyshkin.net',
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com', // apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
// apiUrl: 'http://support-portal.shyshkin.net:5000', // apiUrl: 'http://support-portal.shyshkin.net:5000',
// apiUrl: 'http://localhost:8080', // apiUrl: 'http://localhost:8080',