skip to Main Content

A Laravel post route is being reject as requiring a get

I am using Laravel 10 and have the following route defined: Route::post('bulkPromptsStore', [AppHttpControllersImageCategoryController::class, 'BulkInsertImagePrompts'])->name('bulkPromptsStore'); and in a blade file I call this in the normal way via a form <form name="app" action="bulkPromptsStore" method="post" enctype="multipart/form-data"> There follows a csrf field. However…

VIEW QUESTION

Laravel – Cross-Origin Request Blocked: CORS issue when accessing external resources on an external device, despite working locally

I get the following error messages Cross-Origin Request Blocked: The Same Origin Policy does not allow reading the external resource at http://localhost:5173/resources/js/app.js. (Reason: CORS request failed). Status code: (null). Source URI of module is not allowed in this document: 'http://localhost:5173/resources/js/app.js'.…

VIEW QUESTION
Back To Top
Search