I am working on adding my chat messenger API from GetStream.io to my Hostinger WordPress website. I have mostly been using chat GPT to assist me in this but have been able to create a working program locally, now I need to implement it into my website. That being said, I am running into issues with CORS (Err: 403 Forbidden strict-origin-when-cross-origin)I believe. It looks like the code is being requested from both the Server side and API side but will not be accepted by the Server side (I included images of this being shown on both sides). I have even added the line of code that should allow any information to be accepted (possibly to the wrong location?). I also have a “Deprecated feature used”, could this be the root of my issue?
I have tried using chat GPT to assist me in this with minimal success. The biggest issue comes from the file I created called “custom-chat.js” that pulls the information in from getstream.io then gets read on the page through HTML.
Update: I have made progress in this issue but it has only shifted to another issue! It appears my code is getting stopped by the theme I have this information in (Minamaze). It is blocking with CORB and again I am stuck. Where would I tell minamaze to accept this file from my hostinger file manager?
]]>I recently started up with an AdSense feature in the Site Kit Plugin,
Can not resize element and overflow is not available
When I see my, Warning Console in Chrome, therefore displaying no ads at all.
Should, I use Sit Kit for AdSense or Should I Manually add the codes in Head and Body tags of my template?
I also saw CORB Warning, but that I could see making a Response to 204, not 200, so that is not a problem, besides this, I don’t have any warnings on the pages.
Before opening this topic to debug the same, I disabled my object cache Redis,
Reset Sit Kit 2 times, but no luck.
Some other points :
On The Site Kit > Settings > Adsense
On The Site Kit > Adsense
And, Yes I have checked both the points below :
Both settings from Site kit plugin contradict above.
I also checked with the Curl Commands for Cors, and I get the results like given on amp.dev blog.
Like
curl ‘https://netnaps.com’ -H ‘AMP-Same-Origin: true’ -I
curl ‘https://netnaps.com’ -H ‘origin: https://netnaps-com.cdn.ampproject.org’ -I
Can you please guide further, I made every possible effort.
Thanks & Regards
Rahul
]]>This is the error I get in Chrome [77.0.3865.90 (Official Build) (64-bit)]:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://cdn.shortpixel.ai/spai/w_190+q_lossy+ret_img/https://www.thebp.co.il/wp-content/uploads/2019/09/%D7%A9%D7%9E%D7%99%D7%9B%D7%AA-%D7%A4%D7%A8%D7%97%D7%99%D7%9D-190×300.jpg with MIME type application/octet-stream. See https://www.chromestatus.com/feature/5629709824032768 for more details.
Any idea how to solve this?
]]>I am using the shortpixel and autoptimize plugins. My images are redirected from the shortpixel cdn server to the main site url and I get a Cross-Origin Read Blocking error. Can you help me please?
Ny site url : https://www.sportmystery.com
]]>We would appreciate any kind of advice or information about an error we receive when we use the “Inspect” tool on Chrome. It just started happening and we tried to resolve the issue by unplugging all plugins but had no luck. Is anyone else receiving this error?:
beacon.min.js:22 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://metrics-collector.s-onetag.com/metrics with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.
The error above will actually reproduce itself a few times while using Chrome Inspect. Again, we are not very familiar with errors and would appreciate any help or advice.
Thank you!!
Cindy
i like this plugin and i dont know how to configure it. i try to use the basic SAMPLE CONFIGURATION that it is on the site of this plugin (https://zinoui.com/blog/http-headers-for-wordpress). but i notice some errors in the chrome console. the errors are the followings:
astra-addon-js.min.js:1 Uncaught ReferenceError: astra is not defined
at astra-addon-js.min.js:1
at astra-addon-js.min.js:1
(anonymous) @ astra-addon-js.min.js:1
(anonymous) @ astra-addon-js.min.js:1
———————————————————————
util.js:71 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.paypal.com/xoplatform/logger/api/logger with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
(anonymous) @ util.js:71
ZalgoPromise @ promise.js:41
ajax @ util.js:35
logger_transport @ logger.js:10
(anonymous) @ proxy.js:37
immediateFlush @ logger.js:111
(anonymous) @ util.js:98
_loop @ promise.js:161
ZalgoPromise.dispatch @ promise.js:152
ZalgoPromise.then @ promise.js:241
(anonymous) @ util.js:97
setTimeout (async)
_flush @ util.js:87
(anonymous) @ component.jsx:601
(anonymous) @ promise.js:40
ZalgoPromise.try @ promise.js:400
(anonymous) @ promise.js:39
resultValue @ props.js:88
(anonymous) @ index.js:130
ZalgoPromise.try @ promise.js:400
ParentComponent.tryInit @ index.js:1282
ParentComponent.render @ index.js:124
(anonymous) @ index.js:488
ZalgoPromise.try @ promise.js:400
Component.render @ index.js:487
callOriginal @ util.js:386
(anonymous) @ hacks.js:146
obj.<computed> @ util.js:382
render @ wc-gateway-ppec-smart-payment-buttons.min.js:8
(anonymous) @ wc-gateway-ppec-smart-payment-buttons.min.js:9
(anonymous) @ wc-gateway-ppec-smart-payment-buttons.min.js:10
——————————————————————————-
util.js:71 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.paypal.com/xoplatform/logger/api/logger with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
(anonymous) @ util.js:71
ZalgoPromise @ promise.js:41
ajax @ util.js:35
logger_transport @ logger.js:10
(anonymous) @ proxy.js:37
immediateFlush @ logger.js:111
(anonymous) @ util.js:98
_loop @ promise.js:161
ZalgoPromise.dispatch @ promise.js:152
ZalgoPromise.then @ promise.js:241
(anonymous) @ util.js:97
setTimeout (async)
_flush @ util.js:87
(anonymous) @ component.jsx:601
(anonymous) @ promise.js:40
ZalgoPromise.try @ promise.js:400
(anonymous) @ promise.js:39
resultValue @ props.js:88
(anonymous) @ index.js:130
ZalgoPromise.try @ promise.js:400
ParentComponent.tryInit @ index.js:1282
ParentComponent.render @ index.js:124
(anonymous) @ index.js:488
ZalgoPromise.try @ promise.js:400
Component.render @ index.js:487
callOriginal @ util.js:386
(anonymous) @ hacks.js:146
obj.<computed> @ util.js:382
render @ wc-gateway-ppec-smar…nt-buttons.min.js:8
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
success @ checkout.min.js:1
i @ jquery.js:2
fireWith @ jquery.js:2
y @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
send @ jquery.js:4
ajax @ jquery.js:4
update_checkout_action @ checkout.min.js:1
setTimeout (async)
update_checkout @ checkout.min.js:1
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
init_checkout @ checkout.min.js:1
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
init @ checkout.min.js:1
(anonymous) @ checkout.min.js:1
i @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
K @ jquery.js:2
——————————————————————-
util.js:71 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.paypal.com/xoplatform/logger/api/logger with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
(anonymous) @ util.js:71
ZalgoPromise @ promise.js:41
ajax @ util.js:35
logger_transport @ logger.js:10
(anonymous) @ proxy.js:37
immediateFlush @ logger.js:111
(anonymous) @ util.js:98
_loop @ promise.js:161
ZalgoPromise.dispatch @ promise.js:152
ZalgoPromise.then @ promise.js:241
(anonymous) @ util.js:97
setTimeout (async)
_flush @ util.js:87
(anonymous) @ component.jsx:601
(anonymous) @ promise.js:40
ZalgoPromise.try @ promise.js:400
(anonymous) @ promise.js:39
resultValue @ props.js:88
(anonymous) @ index.js:130
ZalgoPromise.try @ promise.js:400
ParentComponent.tryInit @ index.js:1282
ParentComponent.render @ index.js:124
(anonymous) @ index.js:488
ZalgoPromise.try @ promise.js:400
Component.render @ index.js:487
callOriginal @ util.js:386
(anonymous) @ hacks.js:146
obj.<computed> @ util.js:382
render @ wc-gateway-ppec-smar…nt-buttons.min.js:8
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
success @ checkout.min.js:1
i @ jquery.js:2
fireWith @ jquery.js:2
y @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
send @ jquery.js:4
ajax @ jquery.js:4
update_checkout_action @ checkout.min.js:1
setTimeout (async)
update_checkout @ checkout.min.js:1
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
(anonymous) @ wcf-checkout-template.min.js:18
dispatch @ jquery.js:3
r.handle @ jquery.js:3
load (async)
add @ jquery.js:3
a.event.add @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
sa @ jquery.js:3
on @ jquery.js:3
bind @ jquery.js:5
a.fn.<computed> @ jquery-migrate.min.js:2
(anonymous) @ wcf-checkout-template.min.js:18
(anonymous) @ wcf-checkout-template.min.js:20
——————————————————————————-
kwift.CHROME.min.js:1 Uncaught (in promise) Error: Calculating structure twice ! Should not happen
at Object.computeStructure (kwift.CHROME.min.js:1)
at S (kwift.CHROME.min.js:1)
at callback (kwift.CHROME.min.js:1)
at kwift.CHROME.min.js:1
——————————————————————————–
those are the errors i got in the browser nut i dont know how to solve it. i did deactivate plugin and delete it but the errors still there.
please someone help us fix this or explain . thank you so much in advance
]]>I know a lot of other people had this problem before and I read a lot of solutions for this. But it seems like mine still doesn’t work…
So the font awesome icons appear fine in chrome but doesn’t show in Firefox with this error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.seoulhosteldowntown.com/wordpress/wp-content/themes/sydney/fonts/fontawesome-webfont.woff?v=4.3.0. This can be fixed by moving the resource to the same domain or enabling CORS. fontawesome-webfont.woff
downloadable font: download failed (font-family: “FontAwesome” style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: https://www.seoulhosteldowntown.com/wordpress/wp-content/themes/sydney/fonts/fontawesome-webfont.woff?v=4.3.0 font-awesome.min.css:4
GET https://mnh.starvard.net/ [HTTP/1.1 503 Service Temporarily Unavailable 44ms]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.seoulhosteldowntown.com/wordpress/wp-content/themes/sydney/fonts/fontawesome-webfont.ttf?v=4.3.0. This can be fixed by moving the resource to the same domain or enabling CORS. fontawesome-webfont.ttf
downloadable font: download failed (font-family: “FontAwesome” style:normal weight:normal stretch:normal src index:3): bad URI or cross-site access not allowed
source: https://www.seoulhosteldowntown.com/wordpress/wp-content/themes/sydney/fonts/fontawesome-webfont.ttf?v=4.3.0
I also changed my .htaccess file to this:
<FilesMatch “\.(eot|font.css|otf|ttc|ttf|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
<IfModule mod_url.c>
checkURL On
ServerEncoding EUC-KR
ClientEncoding UTF-8
</IfModule>
php_flag register_globals on
php_flag register_long_arrays on
Can anyone help me please?
]]>