3D FlipBook - Failed to fetch

s***n@gmail.com
2020-08-17
2020-08-17

Failed to fetch (Chrome) or Networkerror when attemting to fetch resource. This happens when I try to load a new PDF in the FlipBook. New site, new WP 5.5 and Twenty-twenty. It has only one plugin (3D Flipbook). Everything brand new out of the "box". Error log from Chrome: post-new.php?post_type=3d-flip-book:1 Access to fetch at 'http://media.wagberg.eu/2020/08/Testpdf1.pdf' from origin 'http://www.wagberg.eu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. media.wagberg.eu/2020/08/Testpdf1.pdf:1 Failed to load resource: net::ERR_FAILED edit.min.js?ver=1.10.4:6 t (anonymous) @ edit.min.js?ver=1.10.4:6

Replies

a***r@3dflipbook.net
2020-08-17
2020-08-17

You need to allow CORS for http://media.wagberg.eu/ add in .htaccess

# CORS for PDFs
<IfModule mod_headers.c>
<Files ~ ".*\.pdf$">
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "GET"
Header add Access-Control-Allow-Headers: "Range"
Header add Access-Control-Expose-Headers: "Accept-Ranges, Content-Encoding, Content-Length, Content-Range"
</Files>
</IfModule>
s***n@gmail.com
2020-08-17
2020-08-17

Do you mean that one .htaccess file (with the code above) should be placed in the catalogue media.wagberg.eu on the web provider server?

a***r@3dflipbook.net
2020-08-17
2020-08-17

Yes, it should be there. Do not rewrite the old file just append these lines.

s***n@gmail.com
2020-08-17
2020-08-17

This is the .htaccess (there were no old file, I made a new)

#Begin Wordpress
# CORS for PDFs
<IfModule mod_headers.c>
<Files ~ ".*\.pdf$">
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "GET"
Header add Access-Control-Allow-Headers: "Range"
Header add Access-Control-Expose-Headers: "Accept-Ranges, Content-Encoding, Content-Length, Content-Range"
</Files>
</IfModule>

#End Wordpress

It is located here:

media.wagberg.eu catalogue .. catalogue Public_html file .htaccess

Gives same error

s***n@gmail.com
2020-08-17
2020-08-17

It lost the format?? media.wagberg.eu catalogue .. catalogue Public_html file .htaccess

a***r@3dflipbook.net
2020-08-17
2020-08-17

Something is wrong there is not CORS headers from the server: https://ibb.co/86vGyMr

a***r@3dflipbook.net
2020-08-17
2020-08-17

It should be like this https://ibb.co/nzJN0Dy , contact the hosting support they will help

s***n@gmail.com
2020-11-22
2020-11-22

I have the same issue. Get a message "NetworkError when attempting to fetch resource." I have the same hosting in Sweden (Loopia), they can't do anything about this issue. I have placed the code above into the .htaccess file - get the same message.

What more to do???? oamck.se/jernet/testjarn

t***s@anchorp.com
2023-06-28
2023-06-28

I have this issue, https://www.anchorp.com/resources/brochures/. I have added the code and still get the same issue. I just bought the pro version too. Thinking it might resolve it. It did not

t***s@anchorp.com
2023-06-28
2023-06-28

Corrected the issue. Since this site was in a Dev environment, it had a link to the dev image. I changed the image and everything works

Log In to leave a comment