Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMException in Google Chrome because of Synchronous XMLHttpRequest on the main thread is deprecated #7955

Closed
tomhatzer opened this issue Jan 20, 2021 · 2 comments

Comments

@tomhatzer
Copy link
Contributor

Bug Report

Pimcore version: 6.8.7 (but also existed on 6.7.3)

Expected behavior

New Data Object is created and listed in the Data Objects overview list.

Actual behavior

Data Object is not created and following errors are printed in the browsers console. This only happens in Google Chrome, not in Firefox or Safari or Edge. When I try to access the url mentioned in the DOMException Message I do get a response with the string I entered in the name field earlier like {"filename":"driver123"}.

image

Steps to reproduce

  • Open pimcore admin in Google Chrome (Version 87.0.4280.141 or Version 88.0.4324.96)
  • Open Google Chrome debug console
  • Try creating a new Data Object by right clicking on Home -> Add Object -> Select any object that exists in your system
  • Enter name for object and click "OK"
  • Console will show errors from above screenshot

Important note: The pimcore demo only shows xhr request failed messages without any further details multiple times.

@brusch
Copy link
Member

brusch commented Jan 21, 2021

I'm not able to reproduce this on our public demo https://demo.pimcore.fun/admin/
Chrome 88.0.4324.96

image

@brusch brusch closed this as completed Jan 21, 2021
@tomhatzer
Copy link
Contributor Author

If anyone sees this thing here and needs a solution... Remove the sync-xhr=(), and sync-xhr 'none' values from your webservers permissions-policy and feature-policy CSP (content security policy) response headers.

Before eg.:

feature-policy: geolocation 'none';midi 'none';sync-xhr 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';fullscreen 'self';payment 'none';
permissions-policy: geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(self), payment=()

After eg.:

feature-policy: geolocation 'none';midi 'none';microphone 'none';camera 'none';magnetometer 'none';gyroscope 'none';fullscreen 'self';payment 'none';
permissions-policy: geolocation=(), midi=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(self), payment=()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants