CEF iframe CORS issue

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: CEF iframe CORS issue

Postby magreenblatt » Mon Mar 08, 2021 10:37 am

Fix your CDN to return the correct Access-Control-Allow-Headers and Access-Control-Allow-Methods. See https://developer.mozilla.org/en-US/doc ... ds/OPTIONS
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: CEF iframe CORS issue

Postby rsharma07 » Tue Mar 09, 2021 8:27 am

@magreenblatt, may you please share some idea about it?

rsharma07 wrote:Hi everyone, we have updated our browser application to 4324 and we are getting a problem loading of some icons from our internal CDN, this error is related to CORS policy:

Access to font at 'https://cdn.NAME.com/thief-angular/2.18.0/fonts/thief-icons.woff' from origin 'https://*.apps.NAME.com' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.


We were not getting any problem with this flag "disable-features=OutOfBlinkCors", it seems, it has disabled in CEF now: https://bitbucket.org/chromiumembedded/ ... -not-fully

Running with "--disable-web-security" fixes the problem, but it might create some security issues.
Is there any alternative for this?

Thank you.
rsharma07
Techie
 
Posts: 17
Joined: Wed Oct 21, 2020 4:12 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: ndesktop and 32 guests