Implement IBM HTTP Server reverse proxy to avoid CORS in AngularJS

  • 21 Sep, 2016

Working this week on a new WebSphere Portal Project.

Several content are using AngularJS and some calls to get data go to another server in another domain.

To avoid CORS we implement a reverse proxy on the IHS side.

Bellow the config of my httpd.conf. LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule ibm_ssl_module modules/mod_ibm_ssl.so

SSLProxyEngine on KeyFile /opt/IBM/HTTPServer/bin/key.kdb SSLStashfile /opt/IBM/HTTPServer/bin/key.sth

Proxypass /acme/products  https://anotherdomain/api/v1/products ProxypassReverse /acme/products  https://anotherdomain/api/v1/products

Related Posts

Proud to be an HCL Ambassador 2021

  • 15 Dec, 2020

​If you have a problem, and no-one else can help, and if you can find them, maybe you can ask an HCL Ambassador… !(http://www.mysphere.com.br/wp-content/uploads/2020/12/HCLAmbassaborlight4x.png) See

Proud to be an HCL Ambassador 2021Read More

Apple Is Trying to Kill Web Technology

  • 06 Dec, 2020

The programming languages used to build the web often find their way into apps, too. That’s largely due to software that allows developers to “reuse” the code they write for the web in products they b

Apple Is Trying to Kill Web TechnologyRead More

Secure Nginx server with LetsEncrypt

  • 12 Jun, 2020

You need A Fully Qualified Domain Name (FQDN) pointing to a dedicated IP address of the webserver. This needs to be configured by your DNS administrator or provider. 1 - Install Certbot in Centos 8

Secure Nginx server with LetsEncryptRead More