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

Icon images are not getting displayed #153

Closed
KabirAryan opened this issue Feb 27, 2017 · 1 comment
Closed

Icon images are not getting displayed #153

KabirAryan opened this issue Feb 27, 2017 · 1 comment

Comments

@KabirAryan
Copy link

I have used 'bootstrap-wysihtml5-rails' to provide text editing functionalities.

The image icons get displayed properly in development environment or by preceding the URL with cdn, but if I try to access the site in either staging or production environments, then they don't load up properly.

If accessed in development or cdn.site-name.com then the icons get displayed properly as follows:

with_cdn

But, if I try to access the site in either staging or production environments then the icons images don't load up as follows:

without_cdn

The error observed in chrome debugger is as follows:

Access to Font at 'https://cdn.staging.site-name.com/fonts/glyphicons-halflings-regular.woff2' from origin 'https://staging.site-name.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I have tried various solution posted on Stack Overflow associated with above issue, but none of them has helped me out yet.

Kindly suggest how to overcome the issue.

@Nerian
Copy link
Owner

Nerian commented Dec 18, 2017

Did you come up with a solution? Feel free to reopen if you haven't.

@Nerian Nerian closed this as completed Dec 18, 2017
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