X
Kliknite sem pre prechod na mobilnú verziu webu.

Fórum podpory

Got "Cross-Origin Request Blocked" but works in Chrome

Pridané

When first access http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html, it's OK but when I refresh the page I got the following annoying error in the Web Console:

"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://pgw-v11f.phono.com:8080/http-bind. This can be fixed by moving the resource to the same domain or enabling CORS."

I've checked the Headers is fine. I'm using Firefox 31.0

But all works in a Chrome 36.0.

When first access http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html, it's OK but when I refresh the page I got the following annoying error in the Web Console: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://pgw-v11f.phono.com:8080/http-bind. This can be fixed by moving the resource to the same domain or enabling CORS." I've checked the Headers is fine. I'm using Firefox 31.0 But all works in a Chrome 36.0.

Ďalšie informácie o systéme

Nainštalované zásuvné moduly

  • Shockwave Flash 14.0 r0
  • Displays Java applet content, or a placeholder if Java is not installed.
  • Provides information about the default web browser
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
  • suning Plugin
  • 快播科技出品,支持目前主流多媒体格式
  • Plugin that detects installed Citrix Online products (visit www.citrixonline.com).
  • iPhoto6
  • npalicdo for cocoa
  • Picasa plugin.
  • QQ QuickLogin Helper
  • AT&T Connect Event Entry Plug-in
  • aliedit for cocoa
  • NPSafeInput Plug-in
  • UPEditor plugin for Mac OS X version:1.0.0.3
  • NPClientBinding Plug-in
  • NPCleanHistory Plug-in
  • NPSafeSubmit Plug-in

Aplikácie

  • Identifikácia prehliadača: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0

Viac informácií

guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
586 riešení 6714 odpovedí

Ya change the feature to number 2. network.http.referer.XOriginPolicy or security.fileuri.strict_origin_policy -> false

MDN Same origin policy

Ya change the feature to number 2. network.http.referer.XOriginPolicy or security.fileuri.strict_origin_policy -> false [https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy MDN Same origin policy]

Autor otázky

After I set both, still got the same security error on refresh. You can easily reproduce it.

After I set both, still got the same security error on refresh. You can easily reproduce it.

Autor otázky

After I set both, still got the same security error on refresh. You can easily reproduce it.

After I set both, still got the same security error on refresh. You can easily reproduce it.
guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
586 riešení 6714 odpovedí

I see that you are using CORS apihttp://www.bennadel.com/blog/2327-cross-origin-resource-sharing-c...

I tested the site in version 32, beta and it seems to be working ok, can you try beta to make sure it is also working on your end?

I see that you are using CORS api[http://www.bennadel.com/blog/2327-cross-origin-resource-sharing-cors-ajax-requests-between-jquery-and-node-js.htm] I tested the site in version 32, beta and it seems to be working ok, can you try beta to make sure it is also working on your end?

Autor otázky

I've installed the beta and updated to RC1 later, I still have this issue when I refresh the page.

I've installed the beta and updated to RC1 later, I still have this issue when I refresh the page.
FredMcD
  • Top 10 Contributor
796 riešení 11510 odpovedí

I went to the link you posted. I reloaded the page several times using F5 and Shift F5. There were no problems.

http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html

I went to the link you posted. I reloaded the page several times using '''F5''' and '''Shift F5'''. There were no problems. '''http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html'''

Autor otázky

Thanks for your response. Have you opened the Web Console? There should be one Warning during the reloading of the page.

Thanks for your response. Have you opened the Web Console? There should be one Warning during the reloading of the page.
guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
586 riešení 6714 odpovedí

Does this also happen after the update to version 32?

The error occurs after I hit the back button after testing the chat:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://pgw-v11f.phono.com:8080/http-bind. This can be fixed by moving the resource to the same domain or enabling CORS.

Not when forward. Did changing the origin feature in about:config show this warning?

Does this also happen after the update to version 32? The error occurs after I hit the back button after testing the chat: <blockquote> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://pgw-v11f.phono.com:8080/http-bind. This can be fixed by moving the resource to the same domain or enabling CORS. </blockquote> Not when forward. Did changing the origin feature in about:config show this warning?

Autor otázky

>>Does this also happen after the update to version 32? Yes >>Did changing the origin feature in about:config show this warning? Using this "Ya change the feature to number 2. network.http.referer.XOriginPolicy or security.fileuri.strict_origin_policy -> false " did not help.

>>Does this also happen after the update to version 32? Yes >>Did changing the origin feature in about:config show this warning? Using this "Ya change the feature to number 2. network.http.referer.XOriginPolicy or security.fileuri.strict_origin_policy -> false " did not help.
guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
586 riešení 6714 odpovedí

Are these headers the same?

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:33.0) Gecko/20100101 Firefox/33.0 Referer: http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html Pragma: no-cache Origin: http://s.phono.com Host: pgw-v11g.phono.com:8080 Content-Type: text/plain; charset=UTF-8 Content-Length: 496 Connection: keep-alive Cache-Control: no-cache Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Are these headers the same? User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:33.0) Gecko/20100101 Firefox/33.0 Referer: http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html Pragma: no-cache Origin: http://s.phono.com Host: pgw-v11g.phono.com:8080 Content-Type: text/plain; charset=UTF-8 Content-Length: 496 Connection: keep-alive Cache-Control: no-cache Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 <!--https://support.tropo.com/entries/45106749-CORS-often-fails--->

Upravil(a) guigs2 dňa

Autor otázky

Mine: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0 Referer: http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html Pragma: no-cache Origin: http://s.phono.com Host: pgw-v11f.phono.com:8080 Content-Type: text/plain; charset=UTF-8 Content-Length: 110 Connection: keep-alive Cache-Control: no-cache Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Please NOTE: I only got this error when refreshing this page.

Mine: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0 Referer: http://s.phono.com/releases/1.1/samples/kitchen-sink/www/index.html Pragma: no-cache Origin: http://s.phono.com Host: pgw-v11f.phono.com:8080 Content-Type: text/plain; charset=UTF-8 Content-Length: 110 Connection: keep-alive Cache-Control: no-cache Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Please NOTE: I only got this error when refreshing this page.
guigs2
  • Top 10 Contributor
  • Administrator
  • Moderator
586 riešení 6714 odpovedí

Is this because of cookies expiring on the same session id?

Is this because of cookies expiring on the same session id?