Moha B.'s avatar

Problem with cors Laravel 8, X-Frame-Options.

Hello everyone. I'm working in my own project with Laravel 8 and i'm now with this framework. My personal project is like blog, where every can write and post. The problem i have is with the implementation of Filemamanger Unisharp and Tinymce. When i use the editor tinymce to create a new post all everything is fine until I want to upload some images on tinymce editor, the iframe just don't work and the error message is : 'X-Frame-Options' headers with conflicting values ('DENY, sameorigin'). Falling back to 'deny'. And i dont know how to resolve I tried to fix it by installing: fruitcake / laravel-cors i with my own middleware. Some one can help me?

Thank you and I hope you are well

0 likes
7 replies
jlrdw's avatar

Have you tried changing cors settings in config? ALso if making a change run:

php artisan config:clear
Moha B.'s avatar

Yes I just try it and I have non results

Moha B.'s avatar

Nope, i think the problem is the server where i work.

I test the server with this page (gf. dev/x-frame-options-test) <---- thi is the url

So i replay my question when i have the solution

Moha B.'s avatar
Moha B.
OP
Best Answer
Level 1

solved, the problem was a vpn server that had that policy and the solution was to change the policy of the server

Please or to participate in this conversation.