-
Notifications
You must be signed in to change notification settings - Fork 175
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
Getting Error file origin does not match viewer's #42
Comments
@srikanthcx Wondering if you might need to look into HOSTED_VIEWER_ORIGINS_OPTIONS ? |
hi siegy22 here the response iam getting
Response Headers
Request Headers
|
@srikanthcx there you can see that there are no See: https://github.com/senny/pdfjs_viewer-rails#setting-up-cors |
@siegy22 i have configured it but still iam getting error. |
@gordonbisnor Do you know how to get HOSTED_VIEWER_ORIGINS_OPTIONS from global? |
@srikanthcx I got same problem when I use it in custom angular wrapper(but I don't think the problem is related with this wrapper). |
K got it, thanks @raykin |
Hey, same issue here. No other solution than Raykin's ? I've updated HOSTED_VIEWER_ORIGINS_OPTIONS but I still get the error message : "file origin does not match viewer's" Any help appreciated. |
I commented the code below within viewer.js and now it's working. if (fileOrigin !== viewerOrigin) { |
I am getting error file origin does not match viewer's. so please help me on this. we are using s3 for storage and i have configured CORS with cross origin. But i am getting above error. So please can anbody help me on this.
The text was updated successfully, but these errors were encountered: