Open kamalkech opened 2 years ago
HI @kamalkech we had to add code to our proxy to allow requests only from Brightcove domains (orders from our security group). However, if you have somewhere to host it that supports PHP, we have a plain vanilla version of the code here: https://github.com/BrightcoveLearning/bcls-proxy.js
I hope that helps.
@rcrooks i clone repo when start it i got:
/mnt/E656FADC56FAAC85/Projects/Vanilla/bcls-proxy.js/bcls-proxy.js:126
if (req.headers.origin.indexOf("localhost") < 0) {
^
TypeError: Cannot read properties of undefined (reading 'indexOf')
at Server.<anonymous> (/mnt/E656FADC56FAAC85/Projects/Vanilla/bcls-proxy.js/bcls-proxy.js:126:32)
at Server.emit (node:events:527:28)
at parserOnIncoming (node:_http_server:951:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
Node.js v17.6.0
for Your request cannot be processed; this proxy only handles requests originating from a local web server. If you would like to build your own version of this proxy, see http://docs.brightcove.com/en/perform/oauth-api/guides/quick-start.html
this link not working !!
Getting this error:
How enable cors ? there is option to add for this error when try to test locally