evanw / evanw/node-source-map-support

Refused to get unsafe header "SourceMap"

オープン
#68 コメント 6 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.2k
フォーク
223
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm trying to use this module in the browser in combination with bluebird and webpack.

I'm loading it via `import 'source-map-support/register'` and all builds fine but when I run the code in the browser I throws

```
Refused to get unsafe header "SourceMap"
Refused to get unsafe header "X-SourceMap"
```

any ideas what is going wrong here?
- Chrome Version 43.0.2357.81 (64-bit) (Mac)
- source-map-support@0.3.1 node_modules/source-map-support

![screen shot 2015-06-01 at 12 38 34](https://cloud.githubusercontent.com/assets/790842/7911163/3eacb90c-085b-11e5-88a0-13d9962bf9bf.png)
![screen shot 2015-06-01 at 12 38 24](https://cloud.githubusercontent.com/assets/790842/7911164/3ead48e0-085b-11e5-9da8-c05eb4628e1c.png)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、Bluebird と webpack を使用し、エントリーポイント `import 'source-map-support/register'` からブラウザビルドを再現します。Chrome 43 における `SourceMap` ヘッダーと `X-SourceMap` ヘッダーのリクエストを調査し、その原因とブラウザで使用するための検証済みの解決策を文書化します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, webpack
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。