plaid / plaid-link-android

Plaid Link Android SDK
https://plaid.com/docs/link/android
MIT License
116 stars 49 forks source link

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

Open shalomhalbert opened 4 years ago

shalomhalbert commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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