2017-05-25 12 views
1

Azureブロブストレージに角度アプリ "dist"フォルダをアップロードしました。
blobの内側からindex.htmlを実行すると、アプリケーションが実行されます。
今、私は、このBLOBにリダイレクトし、角度のアプリケーションを実行するいくつかのAzureプロキシ関数を作成したいと思います。
しかし、私はこのプロキシを実行したとき、私は例外を取得:AzureブロブストレージとAzureプロキシ関数を使用してangular2アプリを使用する

error_handler.js:48 EXCEPTION: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'StorageUrl/ContainerName/' cannot be created in a document with origin 'FunctionUrl' and URL 'FunctionUrl/ContainerName'. Error: Failed to execute 'replaceState' on 'History': A history state object with URL 'StorageUrl/ContainerName/' cannot be created in a document with origin 'FunctionUrl' and URL 'FunctionUrl/ContainerName'.

は、誰もがこのエラーを見ていますか?

答えて

0

Angularさんの問題の詳細を再現できます。 official docは言う:

The router uses the browser's history.pushState for navigation. Thanks to pushState , you can make in-app URL paths look the way you want them to look, e.g. localhost:3000/crisis-center . The in-app URLs can be indistinguishable from server URLs.

そしてMozilla pushState documentationから:

The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception.

関連する問題