Microsoft Stream CORS Error




I get a list of microsoft stream video json with this url.





I tried




            type: 'POST',
            headers: {
                'Access-Control-Allow-Origin': '*'
                , 'Access-Control-Allow-Credentials': true
                , 'Access-Control-Expose-Headers': 'Date, Server, Content-Type, Content-Length'
                , 'Access-Control-Allow-Methods': 'OPTIONS, GET, POST, HEAD'
                , 'Access-Control-Allow-Headers': 'Content-Type, User-Agent, If-Modified-Since, Cache-Control, Range'},
            url: "$top=10&$orderby=name&$expand=creator&$skip=0",
            async: true
        }).done(function (data) {
        }).fail(function (data, textStatus, errorThrown) {




But this causes errors.




Access to XMLHttpRequest at 'url' from origin 'my url' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.





So I tried many ways. I changed the type to jsonp and crossdomain to true.
Then this time,,





jquery.min.js:2 Cross-Origin Read Blocking (CORB) uses MIME-form application/json to respond to cross-source 'url' has been blocked. For more information, visit




An error like this has occurred.

It looks like a failure, but the status is 200.

and error message :

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them     at Function.invokeGetter


I have created my local



It's really hard. I can't find a way. Help me please..

2 Replies
best response confirmed by BoHyun (Contributor)

@BoHyun I think you have to wait for the official API to get that work. I have tried what you do from a Power Automate Flow with some tricks regarding authentication and that worked. Didn't tried it from an own app till now.

@Tomislav Karafilov 


Can you share your flow trick?  Trying to get authentication working...