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

Chromium access to font has been blocked by CORS policy #112

Open
shalomhalbert opened this issue Nov 3, 2020 · 2 comments
Open

Chromium access to font has been blocked by CORS policy #112

shalomhalbert opened this issue Nov 3, 2020 · 2 comments
Assignees

Comments

@shalomhalbert
Copy link

The problem

When launching the Link UI, the following errors are consistently logged one after the other:

I/chromium: [INFO:CONSOLE(0)] "Access to Font at 'https://cdn.plaid.com/link/2.0.748/assets/fonts/vaud.woff2' from origin 'https://secure.plaid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://secure.plaid.com' is therefore not allowed access.", source: https://secure.plaid.com/link/v2/stable/link.html?isWebview=true&isMobile=true&apiVersion=v2&androidSdkImplementation=inProcess&token=link-sandbox-0e1b014c-b0e8-47e6-bece-e22e56f217c7 (0)

I/chromium: [INFO:CONSOLE(0)] "Access to Font at 'https://cdn.plaid.com/link/2.0.748/assets/fonts/vaud-medium.woff2' from origin 'https://secure.plaid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://secure.plaid.com' is therefore not allowed access.", source: https://secure.plaid.com/link/v2/stable/link.html?isWebview=true&isMobile=true&apiVersion=v2&androidSdkImplementation=inProcess&token=link-sandbox-0e1b014c-b0e8-47e6-bece-e22e56f217c7 (0)

I/chromium: [INFO:CONSOLE(0)] "Access to Font at 'https://cdn.plaid.com/link/2.0.748/assets/fonts/vaud-extrabold.woff2' from origin 'https://secure.plaid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://secure.plaid.com' is therefore not allowed access.", source: https://secure.plaid.com/link/v2/stable/link.html?isWebview=true&isMobile=true&apiVersion=v2&androidSdkImplementation=inProcess&token=link-sandbox-0e1b014c-b0e8-47e6-bece-e22e56f217c7 (0)

I/chromium: [INFO:CONSOLE(0)] "Access to Font at 'https://cdn.plaid.com/link/2.0.748/assets/fonts/micr-e13b-webfont.woff2' from origin 'https://secure.plaid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://secure.plaid.com' is therefore not allowed access.", source: https://secure.plaid.com/link/v2/stable/link.html?isWebview=true&isMobile=true&apiVersion=v2&androidSdkImplementation=inProcess&token=link-sandbox-0e1b014c-b0e8-47e6-bece-e22e56f217c7 (0)

Environment

Android OS Version API 28
Android Devices/Emulators Pixel 2 emulator

Steps to Reproduce

  1. Follow single "Todo" in the example/fontBlocked branch
  2. Run the application
  3. Watch logcat.

Expected Result

No such error.

Logs

Shown above.

@JeroenMols JeroenMols self-assigned this Nov 4, 2020
@JeroenMols
Copy link
Contributor

Thanks for reporting!

We're able to reproduce this ourselves and are looking into a fix. I'll get back to you as soon as I have an ETA.
Please note that this only impacts font rendering, not any of Link's core functionality.

@JeroenMols
Copy link
Contributor

This is on our radar, but I still don't have an ETA unfortunately.

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