CORS support for IBM Connections API -


we writing stand alone javascript application has create wiki pages in ibm connections community via connections api. however, browser blocks requests connections api because cross origin resource sharing (cors) not configured on connections api.

is possible configure connections api allow requests our internal applications eg *.our-company.com? we're running connections v5.0.

yes it's possible. have configure in ihs! config snippet might useful you:

rewritecond %{http:origin} (.+\.<yourdomain>\.com) [nc] rewriterule .* - [e=acceptorigin:%1] header set access-control-allow-origin %{acceptorigin}e env=acceptorigin header set access-control-allow-credentials true env=acceptorigin header set access-control-allow-methods "post, get, head" env=acceptorigin  header set access-control-max-age 3600 env=acceptorigin  header set access-control-allow-headers content-type env=acceptorigin 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -